[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.58 and 1.59

version 1.58, 2006/03/31 18:19:44 version 1.59, 2006/04/14 01:08:15
Line 266 
Line 266 
         mvprintw(GENSTATROW, GENSTATCOL, "   Csw   Trp   Sys   Int   Sof  Flt");          mvprintw(GENSTATROW, GENSTATCOL, "   Csw   Trp   Sys   Int   Sof  Flt");
   
         mvprintw(GRAPHROW, GRAPHCOL,          mvprintw(GRAPHROW, GRAPHCOL,
             "    . %% Sys    . %% User    . %% Nice    . %% Idle");              "    . %%Int    . %%Sys    . %%Usr    . %%Nic    . %%Idle");
         mvprintw(PROCSROW, PROCSCOL, "Proc:r  d  s  w");          mvprintw(PROCSROW, PROCSCOL, "Proc:r  d  s  w");
         mvprintw(GRAPHROW + 1, GRAPHCOL,          mvprintw(GRAPHROW + 1, GRAPHCOL,
             "|    |    |    |    |    |    |    |    |    |    |");              "|    |    |    |    |    |    |    |    |    |    |");
Line 303 
Line 303 
         putint((int)((float)s.fld/etime + 0.5), l, c, w)          putint((int)((float)s.fld/etime + 0.5), l, c, w)
 #define MAXFAIL 5  #define MAXFAIL 5
   
 static  char cpuchar[CPUSTATES] = { '=' , '>', '-', ' ' };  static  char cpuchar[CPUSTATES] = { '|', '=', '>', '-', ' ' };
 static  char cpuorder[CPUSTATES] = { CP_SYS, CP_USER, CP_NICE, CP_IDLE };  static  char cpuorder[CPUSTATES] = { CP_INTR, CP_SYS, CP_USER, CP_NICE, CP_IDLE };
   
 void  void
 showkre(void)  showkre(void)
Line 376 
Line 376 
         /*          /*
          * Last CPU state not calculated yet.           * Last CPU state not calculated yet.
          */           */
         for (c = 0; c < CPUSTATES - 1; c++) {          for (c = 0; c < CPUSTATES; c++) {
                 i = cpuorder[c];                  i = cpuorder[c];
                 f1 = cputime(i);                  f1 = cputime(i);
                 f2 += f1;                  f2 += f1;
                 l = (int) ((f2 + 1.0) / 2.0) - psiz;                  l = (int) ((f2 + 1.0) / 2.0) - psiz;
                 if (c == 0)                  putfloat(f1, GRAPHROW, GRAPHCOL + 1 + (10 * c), 5, 1, 0);
                         putfloat(f1, GRAPHROW, GRAPHCOL + 1, 5, 1, 0);  
                 else  
                         putfloat(f1, GRAPHROW, GRAPHCOL + 12 * c,  
                             5, 1, 0);  
                 move(GRAPHROW + 2, psiz);                  move(GRAPHROW + 2, psiz);
                 psiz += l;                  psiz += l;
                 while (l-- > 0)                  while (l-- > 0)

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59