Reorder ChangeLog entries to match the order in which the changes went
[gnulib.git] / tests / test-getloadavg.c
index f9b4a79..f039776 100644 (file)
@@ -30,6 +30,14 @@ check_avg (int minutes, double avg, int printit)
 {
   if (printit)
     printf ("%d-minute: %f  ", minutes, avg);
+  else
+    {
+      /* Plausibility checks.  */
+      if (avg < 0.01)
+        printf ("suspiciously low %d-minute average: %f\n", minutes, avg);
+      if (avg > 1000000)
+        printf ("suspiciously high %d-minute average: %f\n", minutes, avg);
+    }
   if (avg < 0 || avg != avg)
     exit (minutes);
 }