changeset 4398:67c9f8ba927a

*** empty log message ***
author Roland McGrath <roland@gnu.org>
date Sun, 01 Aug 1993 20:39:38 +0000
parents d6d07b43f6d5
children 8080301bd1d9
files src/getloadavg.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 */