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

Diff for /src/usr.bin/vmstat/vmstat.c between version 1.140 and 1.141

version 1.140, 2016/07/27 14:44:59 version 1.141, 2016/08/14 22:47:26
Line 424 
Line 424 
 /*  /*
  * Force a header to be prepended to the next output.   * Force a header to be prepended to the next output.
  */   */
 /* ARGSUSED */  
 void  void
 needhdr(int signo)  needhdr(__unused int signo)
 {  {
   
         hdrcnt = 1;          hdrcnt = 1;
Line 689 
Line 688 
         inttotal = 0;          inttotal = 0;
         for (i = 0; i < nintr; i++) {          for (i = 0; i < nintr; i++) {
                 char name[128];                  char name[128];
                 u_quad_t cnt;                  uint64_t cnt;
                 int vector;                  int vector;
   
                 mib[0] = CTL_KERN;                  mib[0] = CTL_KERN;
Line 747 
Line 746 
         int i, j, len, size, first, mib[4];          int i, j, len, size, first, mib[4];
         u_long totuse = 0, totfree = 0;          u_long totuse = 0, totfree = 0;
         char buf[BUFSIZ], *bufp, *ap;          char buf[BUFSIZ], *bufp, *ap;
         quad_t totreq = 0;          unsigned long long totreq = 0;
         const char *name;          const char *name;
         size_t siz;          size_t siz;
   
Line 893 
Line 892 
                 totreq += ks->ks_calls;                  totreq += ks->ks_calls;
         }          }
         (void)printf("\nMemory Totals:  In Use    Free    Requests\n");          (void)printf("\nMemory Totals:  In Use    Free    Requests\n");
         (void)printf("              %7luK %6luK    %8qu\n",          (void)printf("              %7luK %6luK    %8llu\n",
              (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);               (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
 }  }
   

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141