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

Diff for /src/usr.bin/top/display.c between version 1.22 and 1.23

version 1.22, 2005/07/01 19:33:35 version 1.23, 2006/03/04 06:58:11
Line 487 
Line 487 
         }          }
 }  }
   
 void  
 z_cpustates(void)  
 {  
         char **names, *thisname;  
         int cpu, i;  
         int64_t *lp;  
   
         for (cpu = 0; cpu < ncpu; cpu++) {  
                 /* show tag and bump lastline */  
                 printf("\n%s", cpustates_tag(cpu));  
                 lastline++;  
   
                 names = cpustate_names;  
                 i = 0;  
                 while ((thisname = *names++) != NULL) {  
                         if (*thisname != '\0')  
                                 printf("%s    %% %s", i++ == 0 ? "" : ", ",  
                                     thisname);  
                 }  
   
                 /* fill the "last" array with all -1s, to ensure correct updating */  
                 lp = lcpustates[cpu];  
                 i = num_cpustates;  
                 while (--i >= 0)  
                         *lp++ = -1;  
         }  
 }  
   
 static char     memory_buffer[MAX_COLS];  static char     memory_buffer[MAX_COLS];
   
 /*  /*

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