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

Diff for /src/usr.bin/systat/vmstat.c between version 1.69 and 1.70

version 1.69, 2009/05/03 05:01:54 version 1.70, 2009/08/13 23:45:35
Line 251 
Line 251 
         mvprintw(INTSROW, INTSCOL + 3, " Interrupts");          mvprintw(INTSROW, INTSCOL + 3, " Interrupts");
         mvprintw(INTSROW + 1, INTSCOL + 9, "total");          mvprintw(INTSROW + 1, INTSCOL + 9, "total");
   
           if (LINES - 1 > VMSTATROW + 17)
                   mvprintw(VMSTATROW + 17, INTSCOL + 9, "IPKTS");
           if (LINES - 1 > VMSTATROW + 18)
                   mvprintw(VMSTATROW + 18, INTSCOL + 9, "OPKTS");
   
         mvprintw(VMSTATROW + 0, VMSTATCOL + 10, "forks");          mvprintw(VMSTATROW + 0, VMSTATCOL + 10, "forks");
         mvprintw(VMSTATROW + 1, VMSTATCOL + 10, "fkppw");          mvprintw(VMSTATROW + 1, VMSTATCOL + 10, "fkppw");
         mvprintw(VMSTATROW + 2, VMSTATCOL + 10, "fksvm");          mvprintw(VMSTATROW + 2, VMSTATCOL + 10, "fksvm");
Line 371 
Line 376 
         s.nchcount = nchtotal.ncs_goodhits + nchtotal.ncs_badhits +          s.nchcount = nchtotal.ncs_goodhits + nchtotal.ncs_badhits +
             nchtotal.ncs_miss + nchtotal.ncs_long;              nchtotal.ncs_miss + nchtotal.ncs_long;
   
           if (LINES - 1 > VMSTATROW + 17)
                   putint(sum.ifc_ip, VMSTATROW + 17, INTSCOL, 8);
           if (LINES - 1 > VMSTATROW + 18)
                   putint(sum.ifc_op, VMSTATROW + 18, INTSCOL, 8);
   
         psiz = 0;          psiz = 0;
         f2 = 0.0;          f2 = 0.0;
   
Line 465 
Line 475 
         putfloat((nchtotal.ncs_miss + nchtotal.ncs_long - nchtotal.ncs_pass2) *          putfloat((nchtotal.ncs_miss + nchtotal.ncs_long - nchtotal.ncs_pass2) *
             100.0 / nz(s.nchcount), NAMEIROW + 2, NAMEICOL + 45, 4, 0, 1);              100.0 / nz(s.nchcount), NAMEIROW + 2, NAMEICOL + 45, 4, 0, 1);
 #undef nz  #undef nz
   
 }  }
   
 int  int
Line 693 
Line 704 
         if (state == TIME)          if (state == TIME)
                 copyinfo(&s3, &s1);                  copyinfo(&s3, &s1);
         fetchkre();          fetchkre();
           fetchifstat();
         if (state == TIME)          if (state == TIME)
                 dkswap();                  dkswap();
         num_disp = 0;          num_disp = 0;

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70