Commit f872ec33 authored by Lennart Poettering's avatar Lennart Poettering

util: properly divide in 64bit in format_timestamp()

parent f2d3769a
......@@ -55,8 +55,6 @@
* selinux
* User= and friends needs to understand %i and similar replacements
* make systemd bus activatable
* systemd-sysvinit as package
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment