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

Diff for /src/usr.bin/top/top.c between version 1.42 and 1.43

version 1.42, 2006/03/04 06:54:18 version 1.43, 2006/03/04 06:58:12
Line 89 
Line 89 
 int displays = 0;       /* indicates unspecified */  int displays = 0;       /* indicates unspecified */
 char do_unames = Yes;  char do_unames = Yes;
 struct process_select ps;  struct process_select ps;
 char dostates = No;  
 char interactive = Maybe;  char interactive = Maybe;
 char warnings = 0;  char warnings = 0;
 double delay = Default_DELAY;  double delay = Default_DELAY;
Line 428 
Line 427 
                 (*d_procstates)(system_info.p_total, system_info.procstates);                  (*d_procstates)(system_info.p_total, system_info.procstates);
   
                 /* display the cpu state percentage breakdown */                  /* display the cpu state percentage breakdown */
                 if (dostates) { /* but not the first time */                  (*d_cpustates)(system_info.cpustates);
                         (*d_cpustates)(system_info.cpustates);  
                 } else {  
                         /* we'll do it next time */  
                         if (smart_terminal)  
                                 z_cpustates();  
                         else {  
                                 if (putchar('\n') == EOF)  
                                         exit(1);  
                         }  
                         dostates = Yes;  
                 }  
   
                 /* display memory stats */                  /* display memory stats */
                 (*d_memory)(system_info.memory);                  (*d_memory)(system_info.memory);

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43