From 0c9361f50b3fecb62d905135d431373d93969512 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 2 Feb 2016 16:48:41 +0100 Subject: reformat --- lr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lr.c') diff --git a/lr.c b/lr.c index e1348df..c819491 100644 --- a/lr.c +++ b/lr.c @@ -1181,7 +1181,7 @@ color_size_on(off_t s) { int c; - if (!Gflag) + if (!Gflag) return; if (s < 1024LL) c = 46; @@ -1279,7 +1279,7 @@ color_age_on(time_t t) time_t age = now - t; int c; - if (!Gflag) + if (!Gflag) return; if (age < 0LL) c = 196; @@ -1413,17 +1413,17 @@ print_format(struct fileinfo *fi) if (!*s) break; - time_t t = (*s == 'A' ? fi->sb.st_atime : + time_t t = (*s == 'A' ? fi->sb.st_atime : *s == 'C' ? fi->sb.st_ctime : fi->sb.st_mtime); color_age_on(t); if (*s == '-') { - printf("%3ldd%3ldh%3ldm%3lds", - ((now - t) / (60*60*24)), - ((now - t) / (60*60)) % 24, - ((now - t) / 60) % 60, - (now - t) % 60); + printf("%3ldd%3ldh%3ldm%3lds", + ((now - t) / (60*60*24)), + ((now - t) / (60*60)) % 24, + ((now - t) / 60) % 60, + (now - t) % 60); } else { tfmt[1] = *s; strftime(buf, sizeof buf, tfmt, localtime(&t)); -- cgit 1.4.1