diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 18:58:22 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 18:58:22 +0200 |
commit | 3d237dd2bf99a594dbc7e318e6565c98214b6405 (patch) | |
tree | 8ffc021bb0ae44550ba92e021e4060e23ee79619 | |
parent | 0098cba07408b1364373117b239dae9d86620cdb (diff) | |
download | lr-3d237dd2bf99a594dbc7e318e6565c98214b6405.tar.gz lr-3d237dd2bf99a594dbc7e318e6565c98214b6405.tar.xz lr-3d237dd2bf99a594dbc7e318e6565c98214b6405.zip |
print_format: cleanup
-rw-r--r-- | lr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lr.c b/lr.c index 1d22bcf..f76b5fb 100644 --- a/lr.c +++ b/lr.c @@ -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)); |