about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-06-03 13:34:43 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-06-03 13:34:43 +0200
commitadca1c80f1116c12d1e034c2c1272b9826e49ef2 (patch)
tree43766d96e46670aade9e831ea210f63ece7c43ba
parente2a8fb8d8783c0082205622f08d0f80d4fb7aeb6 (diff)
downloadlr-adca1c80f1116c12d1e034c2c1272b9826e49ef2.tar.gz
lr-adca1c80f1116c12d1e034c2c1272b9826e49ef2.tar.xz
lr-adca1c80f1116c12d1e034c2c1272b9826e49ef2.zip
print_format: use 4 digits for the age in days
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 1734e45..5a64d9f 100644
--- a/lr.c
+++ b/lr.c
@@ -1627,7 +1627,7 @@ print_format(struct fileinfo *fi)
 
 			color_age_on(t);
 			if (*s == '-') {
-				printf("%3ldd%3ldh%3ldm%3lds",
+				printf("%4ldd%3ldh%3ldm%3lds",
 				    ((now - t) / (60*60*24)),
 				    ((now - t) / (60*60)) % 24,
 				    ((now - t) / 60) % 60,