diff options
author | Roland McGrath <roland@gnu.org> | 1993-08-01 20:39:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1993-08-01 20:39:38 +0000 |
commit | db6730c7ad7341f93507f6e19e2184bdbc632247 (patch) | |
tree | bac51e843e32e24786d6afca6aad4e2e74c0da81 /src/getloadavg.c | |
parent | 559f9d04059f2a4f45f12be775a144b29fbd34a1 (diff) | |
download | emacs-db6730c7ad7341f93507f6e19e2184bdbc632247.tar.gz |
*** empty log message ***
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r-- | src/getloadavg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 60036bce46f..ff868c2dafc 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c @@ -810,9 +810,6 @@ main (argc, argv) if (argc > 1) naptime = atoi (argv[1]); - if (naptime == 0) - naptime = 5; - while (1) { double avg[3]; @@ -833,7 +830,12 @@ main (argc, argv) printf ("15-minute: %f ", avg[2]); if (loads > 0) putchar ('\n'); + + if (naptime == 0) + break; sleep (naptime); } + + exit (0); } #endif /* TEST */ |