[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.14 and 1.15

version 1.14, 2003/06/13 21:52:24 version 1.15, 2003/06/18 08:36:31
Line 91 
Line 91 
   
 static int      num_procstates;  static int      num_procstates;
 static int      num_cpustates;  static int      num_cpustates;
 static int      num_memory;  
   
 static int     *lprocstates;  static int     *lprocstates;
 static int     *lcpustates;  static int     *lcpustates;
 static int     *lmemory;  
   
 static int     *cpustate_columns;  static int     *cpustate_columns;
 static int      cpustate_total_length;  static int      cpustate_total_length;
Line 158 
Line 156 
                 cpustate_columns = (int *) malloc(num_cpustates * sizeof(int));                  cpustate_columns = (int *) malloc(num_cpustates * sizeof(int));
   
                 memory_names = statics->memory_names;                  memory_names = statics->memory_names;
                 num_memory = string_count(memory_names);  
                 lmemory = (int *) malloc(num_memory * sizeof(int));  
   
                 /* calculate starting columns where needed */                  /* calculate starting columns where needed */
                 cpustate_total_length = 0;                  cpustate_total_length = 0;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15