summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-29 18:58:22 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-29 18:58:22 +0200
commit3d237dd2bf99a594dbc7e318e6565c98214b6405 (patch)
tree8ffc021bb0ae44550ba92e021e4060e23ee79619
parent0098cba07408b1364373117b239dae9d86620cdb (diff)
downloadlr-3d237dd2bf99a594dbc7e318e6565c98214b6405.tar.gz
lr-3d237dd2bf99a594dbc7e318e6565c98214b6405.tar.xz
lr-3d237dd2bf99a594dbc7e318e6565c98214b6405.zip
print_format: cleanup
-rw-r--r--lr.c8
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));