[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Really small patch to usr.bin/du/du.c



Hi!

'du -h' shows:

396K    web
28M     web-src
     0B zzz
^^^^^
It seems to be only the '-h' option being affected.

This patch corrects the formatting.

--- du.c.orig	Sat Jul 28 12:43:53 2001
+++ du.c	Sat Jul 28 12:51:21 2001
@@ -305,7 +305,7 @@
 		unit = unit_adjust(&bytes);
 
 		if (bytes == 0)
-			(void)printf("     0B\t%s\n", path);
+			(void)printf("0B\t%s\n", path);
 		else if (bytes > 10)
 			(void)printf("%.0f%c\t%s\n", bytes, "BKMGTPE"[unit], path);
 		else

Yeah I know, it's a really small thing, but so is my skills with C! :-)

HAND
		Morten


-- 
×·.¸¸.·´¨)    ¸.·´  ¸.·´¨)     O    Morten Liebach <morten_(_at_)_hotpost_(_dot_)_dk>
        (_¸.·´ (¸.·´  ¸.·×     0    http://home1.stofanet.dk/liebach/
                     (_¸.·´    o    http://pc89225.stofanet.dk/
                               .



Visit your host, monkey.org