diff options
Diffstat (limited to 'procps/top.c')
-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 abee69806..51f1c1aed 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -677,7 +677,7 @@ static NOINLINE void display_process_list(int lines_rem, int scr_width) | |||
677 | if (s->vsz >= 100000) | 677 | if (s->vsz >= 100000) |
678 | sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); | 678 | sprintf(vsz_str_buf, "%6ldm", s->vsz/1024); |
679 | else | 679 | else |
680 | sprintf(vsz_str_buf, "%7ld", s->vsz); | 680 | sprintf(vsz_str_buf, "%7lu", s->vsz); |
681 | /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ | 681 | /* PID PPID USER STAT VSZ %VSZ [%CPU] COMMAND */ |
682 | col = snprintf(line_buf, scr_width, | 682 | col = snprintf(line_buf, scr_width, |
683 | "\n" "%5u%6u %-8.8s %s%s" FMT | 683 | "\n" "%5u%6u %-8.8s %s%s" FMT |
@@ -847,8 +847,7 @@ static void display_topmem_header(int scr_width, int *lines_rem_p) | |||
847 | static void ulltoa6_and_space(unsigned long long ul, char buf[6]) | 847 | static void ulltoa6_and_space(unsigned long long ul, char buf[6]) |
848 | { | 848 | { |
849 | /* see http://en.wikipedia.org/wiki/Tera */ | 849 | /* see http://en.wikipedia.org/wiki/Tera */ |
850 | smart_ulltoa5(ul, buf, " mgtpezy"); | 850 | smart_ulltoa5(ul, buf, " mgtpezy")[0] = ' '; |
851 | buf[5] = ' '; | ||
852 | } | 851 | } |
853 | 852 | ||
854 | static NOINLINE void display_topmem_process_list(int lines_rem, int scr_width) | 853 | static NOINLINE void display_topmem_process_list(int lines_rem, int scr_width) |