From 05241802a7c7c4f85b69f34c5c13df88cdf9fb1e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 29 Aug 2007 18:34:26 +0000 Subject: top: another readability fix --- procps/top.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'procps') diff --git a/procps/top.c b/procps/top.c index 1b4736454..87e85003d 100644 --- a/procps/top.c +++ b/procps/top.c @@ -234,8 +234,7 @@ static char *fmt_100percent_8(char pbuf[8], unsigned value, unsigned total) } #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 @@ static void display_process_list(int count, int scr_width) 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; -- cgit v1.2.3