From: Francois Fleuret Date: Sun, 6 Mar 2011 18:54:13 +0000 (+0100) Subject: Removed the double hyphen when printing the fancy results. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=442b86d6bd7de1b6ad580e66ea76065f99c94f07;p=dus.git Removed the double hyphen when printing the fancy results. --- diff --git a/dus.c b/dus.c index 9330ebd..2bb1e89 100644 --- a/dus.c +++ b/dus.c @@ -295,25 +295,25 @@ void fancy_print(char *buffer, size_t buffer_size, if(size < 1024) { snprintf(buffer, buffer_size, - "% 8d -- %s\n", + "% 8d %s\n", ((int) size), filename); } else if(size < 1024 * 1024) { snprintf(buffer, buffer_size, - "% 7.1fK -- %s\n", + "% 7.1fK %s\n", ((double) (size))/(1024.0), filename); } else if(size < 1024 * 1024 * 1024) { snprintf(buffer, buffer_size, - "% 7.1fM -- %s\n", + "% 7.1fM %s\n", ((double) (size))/(1024.0 * 1024), filename); } else { snprintf(buffer, buffer_size, - "% 7.1fG -- %s\n", + "% 7.1fG %s\n", ((double) (size))/(1024.0 * 1024.0 * 1024.0), filename); }