util: properly divide in 64bit in format_timestamp()

This commit is contained in:
Lennart Poettering 2010-06-19 00:14:12 +02:00
parent f2d3769a16
commit f872ec3397
2 changed files with 1 additions and 3 deletions

2
fixme
View File

@ -55,8 +55,6 @@
* selinux
* User= and friends needs to understand %i and similar replacements
* make systemd bus activatable
* systemd-sysvinit as package

View File

@ -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;