svn commit: trunk/busybox/procps

vda at busybox.net vda at busybox.net
Wed Aug 29 18:34:27 UTC 2007


Author: vda
Date: 2007-08-29 11:34:26 -0700 (Wed, 29 Aug 2007)
New Revision: 19736

Log:
top: another readability fix



Modified:
   trunk/busybox/procps/top.c


Changeset:
Modified: trunk/busybox/procps/top.c
===================================================================
--- trunk/busybox/procps/top.c	2007-08-29 18:23:36 UTC (rev 19735)
+++ trunk/busybox/procps/top.c	2007-08-29 18:34:26 UTC (rev 19736)
@@ -234,8 +234,7 @@
 }
 #endif
 
-/* display generic info (meminfo / loadavg) */
-static unsigned long display_generic(int scr_width)
+static unsigned long display_header(int scr_width)
 {
 	FILE *fp;
 	char buf[80];
@@ -361,7 +360,7 @@
 
 	top_status_t *s = top;
 	char vsz_str_buf[8];
-	unsigned long total_memory = display_generic(scr_width); /* or use total_vsz? */
+	unsigned long total_memory = display_header(scr_width); /* or use total_vsz? */
 	/* xxx_shift and xxx_scale variables allow us to replace
 	 * expensive divides with multiply and shift */
 	unsigned pmem_shift, pmem_scale, pmem_half;




More information about the busybox-cvs mailing list