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

Diff for /src/usr.bin/systat/main.c between version 1.39 and 1.40

version 1.39, 2008/06/13 01:24:55 version 1.40, 2008/06/13 10:06:14
Line 86 
Line 86 
 print_header(void)  print_header(void)
 {  {
         struct tm *tp;          struct tm *tp;
         time_t t;          time_t t, now;
         order_type *ordering;          order_type *ordering;
           int start = dispstart + 1, end = dispstart + maxprint;
           extern int ucount();
           char tbuf[26];
   
         int start = dispstart + 1;  
         int end = dispstart + maxprint;  
   
         if (end > num_disp)          if (end > num_disp)
                 end = num_disp;                  end = num_disp;
   
Line 109 
Line 109 
 #endif  #endif
   
         getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0]));          getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0]));
         extern int ucount();  
         char tbuf[26];  
         time_t now;  
   
         time(&now);          time(&now);
         strlcpy(tbuf, ctime(&now), sizeof tbuf);          strlcpy(tbuf, ctime(&now), sizeof tbuf);

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40