am 81eecb1e: am 2ab69388: am 76080925: am 52d5dfc8: Merge "vmstat: Fix -n flag"

* commit '81eecb1eb8c23e603c78d60a7278a3afd1798962':
  vmstat: Fix -n flag
This commit is contained in:
Jean-Baptiste Queru 2012-08-20 14:56:02 -07:00 committed by Android Git Automerger
commit 1ef97deea5
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ int vmstat_main(int argc, char *argv[]) {
int toggle, count;
int i;
iterations = 0;
iterations = -1;
delay = 1;
header_interval = 20;
@ -119,7 +119,7 @@ int vmstat_main(int argc, char *argv[]) {
if (!header_interval)
print_header();
read_state(&s[1 - toggle]);
while ((iterations == 0) || (iterations-- > 0)) {
while ((iterations < 0) || (iterations-- > 0)) {
sleep(delay);
read_state(&s[toggle]);
if (header_interval) {