[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.49 and 1.50

version 1.49, 2008/11/04 19:00:08 version 1.50, 2008/11/05 15:48:44
Line 69 
Line 69 
   
 #define TIMEPOS 55  #define TIMEPOS 55
   
   int  ucount(void);
   void usage(void);
   
 /* command prompt */  /* command prompt */
   
 void cmd_delay(const char *);  void cmd_delay(const char *);
Line 85 
Line 88 
 int  int
 print_header(void)  print_header(void)
 {  {
         struct tm *tp;          time_t now;
         time_t t, now;  
         order_type *ordering;  
         int start = dispstart + 1, end = dispstart + maxprint;          int start = dispstart + 1, end = dispstart + maxprint;
         extern int ucount();  
         char tbuf[26];          char tbuf[26];
   
         if (end > num_disp)          if (end > num_disp)
Line 97 
Line 97 
   
         tb_start();          tb_start();
   
 #if 0  
         if (curr_mgr && curr_mgr->sort_fn != NULL) {  
                 ordering = curr_mgr->order_curr;  
                 if (ordering != NULL) {  
                         tbprintf(", Order: %s", ordering->name);  
                         if (sortdir < 0 && ordering->func != NULL)  
                                 tbprintf(" (rev)");  
                 }  
         }  
 #endif  
   
         getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0]));          getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0]));
   
         time(&now);          time(&now);
Line 205 
Line 194 
 /* main program functions */  /* main program functions */
   
 void  void
 usage()  usage(void)
 {  {
         extern char *__progname;          extern char *__progname;
         fprintf(stderr, "usage: %s [-abin] [-d count] "          fprintf(stderr, "usage: %s [-abin] [-d count] "
Line 237 
Line 226 
 void  void
 show_help(void)  show_help(void)
 {  {
         int line = 0;  
   
         if (rawmode)          if (rawmode)
                 return;                  return;
   

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50