[BACK]Return to vmstat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vmstat

Diff for /src/usr.bin/vmstat/vmstat.c between version 1.21 and 1.22

version 1.21, 1997/11/07 18:45:29 version 1.22, 1997/11/09 22:13:49
Line 396 
Line 396 
                         printf("Can't get kerninfo: %s\n", strerror(errno));                          printf("Can't get kerninfo: %s\n", strerror(errno));
                         bzero(&total, sizeof(total));                          bzero(&total, sizeof(total));
                 }                  }
                 (void)printf("%2d%2d%2d",                  (void)printf("%2u%2u%2u",
                     total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);                      total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);
 #define pgtok(a) ((a) * (sum.v_page_size >> 10))  #define pgtok(a) ((a) * ((int)sum.v_page_size >> 10))
 #define rate(x) (((x) + halfuptime) / uptime)   /* round */  #define rate(x) (((x) + halfuptime) / uptime)   /* round */
                 (void)printf("%6d%6d ",                  (void)printf("%6u%6u ",
                     pgtok(total.t_avm), pgtok(total.t_free));                      pgtok(total.t_avm), pgtok(total.t_free));
                 (void)printf("%4u ", rate(sum.v_faults - osum.v_faults));                  (void)printf("%4u ", rate(sum.v_faults - osum.v_faults));
                 (void)printf("%3u ",                  (void)printf("%3u ",

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22