]> granicus.if.org Git - procps-ng/commitdiff
After 1st row, -a had 2 inact cols. #169774
authoralbert <>
Tue, 19 Nov 2002 23:40:56 +0000 (23:40 +0000)
committeralbert <>
Tue, 19 Nov 2002 23:40:56 +0000 (23:40 +0000)
vmstat.c

index bfef8299079cc55942256a3527cc9104f730b3b4..78ebfb0e8e315c0a4353c2d3978af44064b6be82 100644 (file)
--- a/vmstat.c
+++ b/vmstat.c
@@ -315,7 +315,7 @@ static void new_format(void) {
            running, blocked,
           kb_swap_used,kb_main_free,
           a_option?kb_inactive:kb_main_buffers,
-          a_option?kb_inactive:kb_main_cached,
+          a_option?kb_active:kb_main_cached,
           (unsigned)( ( (pswpin [tog] - pswpin [!tog])*kb_per_page+sleep_half )/sleep_time ),
           (unsigned)( ( (pswpout[tog] - pswpout[!tog])*kb_per_page+sleep_half )/sleep_time ),
           (unsigned)( (  pgpgin [tog] - pgpgin [!tog]             +sleep_half )/sleep_time ),