From c2f9fa727174088537033c32680afc858d841110 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 4 Aug 2016 20:17:07 +0200 Subject: mscan: silence %b when !msg --- mscan.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mscan.c') diff --git a/mscan.c b/mscan.c index 1148a31..6424f8e 100644 --- a/mscan.c +++ b/mscan.c @@ -367,9 +367,13 @@ oneline(char *file) case 'b': { struct stat st; - if (stat(file, &st) != 0) - st.st_size = 0; - print_human(st.st_size); + if (msg) { + if (stat(file, &st) != 0) + st.st_size = 0; + print_human(st.st_size); + } else { + printf(" "); + } wleft -= 5; } break; -- cgit 1.4.1