projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
using --riggid it is possible to get a case where minval is bigger than maxval ....
[rrdtool.git]
/
src
/
rrd_nan_inf.c
diff --git
a/src/rrd_nan_inf.c
b/src/rrd_nan_inf.c
index
473f51b
..
ce0873e
100644
(file)
--- a/
src/rrd_nan_inf.c
+++ b/
src/rrd_nan_inf.c
@@
-2,8
+2,10
@@
#if defined(WIN32)
+#include <math.h>
+
double set_to_DNAN(void) { return (double)fmod(0.0,0.0); }
-double set_to_DINF(void) { return (double)
log(0.0
); }
+double set_to_DINF(void) { return (double)
fabs((double)log(0.0)
); }
#else