summaryrefslogtreecommitdiff
path: root/tests/test-getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-getloadavg.c')
-rw-r--r--tests/test-getloadavg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-getloadavg.c b/tests/test-getloadavg.c
index f9b4a79b57..f039776b93 100644
--- a/tests/test-getloadavg.c
+++ b/tests/test-getloadavg.c
@@ -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);
}