# HG changeset patch # User Roland McGrath # Date 744237578 0 # Node ID 67c9f8ba927a2fb8fc9f7828b383ac71c3eb8f4a # Parent d6d07b43f6d5c755e67ce3bd57566da72f038c0b *** empty log message *** diff -r d6d07b43f6d5 -r 67c9f8ba927a src/getloadavg.c --- a/src/getloadavg.c Sun Aug 01 18:48:20 1993 +0000 +++ b/src/getloadavg.c Sun Aug 01 20:39:38 1993 +0000 @@ -810,9 +810,6 @@ if (argc > 1) naptime = atoi (argv[1]); - if (naptime == 0) - naptime = 5; - while (1) { double avg[3]; @@ -833,7 +830,12 @@ printf ("15-minute: %f ", avg[2]); if (loads > 0) putchar ('\n'); + + if (naptime == 0) + break; sleep (naptime); } + + exit (0); } #endif /* TEST */