From: Francois Fleuret Date: Wed, 23 Jun 2010 17:49:40 +0000 (+0200) Subject: Now indents at 8 characters for the file size. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a60dad8d8db2c660abb1f4f4ceceba8a1440fe94;p=dus.git Now indents at 8 characters for the file size. --- diff --git a/dus.c b/dus.c index 03bd980..91cb0f0 100644 --- a/dus.c +++ b/dus.c @@ -258,25 +258,25 @@ void fancy_print(char *buffer, size_t buffer_size, if(size < 1024) { snprintf(buffer, buffer_size, - "% 7d -- %s\n", + "% 8d -- %s\n", ((int) size), filename); } else if(size < 1024 * 1024) { snprintf(buffer, buffer_size, - "% 6.1fK -- %s\n", + "% 7.1fK -- %s\n", ((double) (size))/(1024.0), filename); } else if(size < 1024 * 1024 * 1024) { snprintf(buffer, buffer_size, - "% 6.1fM -- %s\n", + "% 7.1fM -- %s\n", ((double) (size))/(1024.0 * 1024), filename); } else { snprintf(buffer, buffer_size, - "% 6.1fG -- %s\n", + "% 7.1fG -- %s\n", ((double) (size))/(1024.0 * 1024.0 * 1024.0), filename); }