dslinux/user/busybox/procps free.c
pepsiman
dslinux_pepsiman at user.in-berlin.de
Sat Sep 16 15:55:05 CEST 2006
Update of /cvsroot/dslinux/dslinux/user/busybox/procps
In directory antilope:/tmp/cvs-serv23399
Modified Files:
free.c
Log Message:
Patch from Daniele Forsi <dforsi at gmail.com> to make the output of 'free' fit in 64 columns.
Index: free.c
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/busybox/procps/free.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- free.c 20 Feb 2006 14:13:34 -0000 1.2
+++ free.c 16 Sep 2006 13:55:03 -0000 1.3
@@ -64,18 +64,18 @@
if (argc > 1 && **(argv + 1) == '-')
bb_show_usage();
- printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
+ printf("%6s%12s%12s%12s%11s%11s\n", "", "total", "used", "free",
"shared", "buffers");
- printf("%6s%13ld%13ld%13ld%13ld%13ld\n", "Mem:", info.totalram,
+ printf("%6s%12ld%12ld%12ld%11ld%11ld\n", "Mem:", info.totalram,
info.totalram-info.freeram, info.freeram,
info.sharedram, info.bufferram);
#ifndef __uClinux__
- printf("%6s%13ld%13ld%13ld\n", "Swap:", info.totalswap,
+ printf("%6s%12ld%11ld%11ld\n", "Swap:", info.totalswap,
info.totalswap-info.freeswap, info.freeswap);
- printf("%6s%13ld%13ld%13ld\n", "Total:", info.totalram+info.totalswap,
+ printf("%6s%12ld%11ld%11ld\n", "Total:", info.totalram+info.totalswap,
(info.totalram-info.freeram)+(info.totalswap-info.freeswap),
info.freeram+info.freeswap);
#endif
More information about the dslinux-commit
mailing list