util: properly divide in 64bit in format_timestamp()
This commit is contained in:
parent
f2d3769a16
commit
f872ec3397
2
fixme
2
fixme
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue