summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 00:14:12 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 00:14:12 +0200
commitf872ec33973b2f508d36939e917ffafd47a87b07 (patch)
treea20d3415cc44b50c458aa4b3ed871960d07de780 /src/util.c
parentf2d3769a161f5b341b20321ca7cb3f689387f410 (diff)
util: properly divide in 64bit in format_timestamp()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 78d8d5d9c5..766aa02965 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1499,7 +1499,7 @@ char *format_timestamp(char *buf, size_t l, usec_t t) {
if (t <= 0)
return NULL;
- sec = (time_t) t / USEC_PER_SEC;
+ sec = (time_t) (t / USEC_PER_SEC);
if (strftime(buf, l, "%a, %d %b %Y %H:%M:%S %z", localtime_r(&sec, &tm)) <= 0)
return NULL;