projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reorder ChangeLog entries to match the order in which the changes went
[gnulib.git]
/
tests
/
test-getloadavg.c
diff --git
a/tests/test-getloadavg.c
b/tests/test-getloadavg.c
index
f9b4a79
..
f039776
100644
(file)
--- 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);
{
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);
}
if (avg < 0 || avg != avg)
exit (minutes);
}