projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This patch introduces a feature whereby rrdcached will disallow updates
[rrdtool.git]
/
src
/
rrd_nan_inf.c
diff --git
a/src/rrd_nan_inf.c
b/src/rrd_nan_inf.c
index
9eae726
..
2914d1a
100644
(file)
--- a/
src/rrd_nan_inf.c
+++ b/
src/rrd_nan_inf.c
@@
-1,5
+1,3
@@
-#include "rrd_nan_inf.h"
-
int done_nan = 0;
int done_inf = 0;
int done_nan = 0;
int done_inf = 0;
@@
-8,18
+6,20
@@
double dinf;
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#include <math.h>
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#include <math.h>
+#include "rrd.h"
#define NAN_FUNC (double)fmod(0.0,0.0)
#define INF_FUNC (double)fabs((double)log(0.0))
#else
#define NAN_FUNC (double)fmod(0.0,0.0)
#define INF_FUNC (double)fabs((double)log(0.0))
#else
+#include "rrd.h"
#define NAN_FUNC (double)(0.0/0.0)
#define INF_FUNC (double)(1.0/0.0)
#endif
#define NAN_FUNC (double)(0.0/0.0)
#define INF_FUNC (double)(1.0/0.0)
#endif
-double set_to_DNAN(
+double
rrd_
set_to_DNAN(
void)
{
if (!done_nan) {
void)
{
if (!done_nan) {
@@
-29,7
+29,7
@@
double set_to_DNAN(
return dnan;
}
return dnan;
}
-double set_to_DINF(
+double
rrd_
set_to_DINF(
void)
{
if (!done_inf) {
void)
{
if (!done_inf) {