[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.13 and 1.14

version 1.13, 1996/06/24 23:51:59 version 1.14, 1996/12/04 10:04:44
Line 437 
Line 437 
                  * We round upward to avoid losing low-frequency events                   * We round upward to avoid losing low-frequency events
                  * (i.e., >= 1 per interval but < 1 per second).                   * (i.e., >= 1 per interval but < 1 per second).
                  */                   */
                 halfuptime = (uptime + 1) / 2;                  halfuptime = uptime == 1 ? 0 : (uptime + 1) / 2;
                 (void)sleep(interval);                  (void)sleep(interval);
         }          }
 }  }

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