Commit 3d237dd2 authored by Leah Neukirchen's avatar Leah Neukirchen

print_format: cleanup

parent 0098cba0
......@@ -1693,10 +1693,10 @@ print_format(struct fileinfo *fi)
if (*s == '-') {
long diff = now - t;
printf("%4ldd%3ldh%3ldm%3lds",
((diff) / (60*60*24)),
((diff) / (60*60)) % 24,
((diff) / 60) % 60,
(diff) % 60);
diff / (60*60*24),
(diff / (60*60)) % 24,
(diff / 60) % 60,
diff % 60);
} else {
tfmt[1] = *s;
strftime(buf, sizeof buf, tfmt, localtime(&t));
......
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