diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-29 18:34:26 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-29 18:34:26 +0000 |
commit | 05241802a7c7c4f85b69f34c5c13df88cdf9fb1e (patch) | |
tree | e758995f0ed2837b23155754d748bd8fc79da6e6 | |
parent | fc1e9951c6393f9b0e42d9a7fa2899b8618b21f8 (diff) | |
download | busybox-w32-05241802a7c7c4f85b69f34c5c13df88cdf9fb1e.tar.gz busybox-w32-05241802a7c7c4f85b69f34c5c13df88cdf9fb1e.tar.bz2 busybox-w32-05241802a7c7c4f85b69f34c5c13df88cdf9fb1e.zip |
top: another readability fix
-rw-r--r-- | procps/top.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) | |||
234 | } | 234 | } |
235 | #endif | 235 | #endif |
236 | 236 | ||
237 | /* display generic info (meminfo / loadavg) */ | 237 | static unsigned long display_header(int scr_width) |
238 | static unsigned long display_generic(int scr_width) | ||
239 | { | 238 | { |
240 | FILE *fp; | 239 | FILE *fp; |
241 | char buf[80]; | 240 | char buf[80]; |
@@ -361,7 +360,7 @@ static void display_process_list(int count, int scr_width) | |||
361 | 360 | ||
362 | top_status_t *s = top; | 361 | top_status_t *s = top; |
363 | char vsz_str_buf[8]; | 362 | char vsz_str_buf[8]; |
364 | unsigned long total_memory = display_generic(scr_width); /* or use total_vsz? */ | 363 | unsigned long total_memory = display_header(scr_width); /* or use total_vsz? */ |
365 | /* xxx_shift and xxx_scale variables allow us to replace | 364 | /* xxx_shift and xxx_scale variables allow us to replace |
366 | * expensive divides with multiply and shift */ | 365 | * expensive divides with multiply and shift */ |
367 | unsigned pmem_shift, pmem_scale, pmem_half; | 366 | unsigned pmem_shift, pmem_scale, pmem_half; |