X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_format.h;h=b9fa2c266b8cef8d800c60ff3b163650c75dbc48;hb=ed9474147fcf5bace60fd36b5c3ca3b4f1f8ac53;hp=ad08e8529ae2ee9a443cd860cb381699710570d7;hpb=a278779cdf2ded56b89fc404d6914bff7ad7dcbd;p=rrdtool.git diff --git a/src/rrd_format.h b/src/rrd_format.h index ad08e85..b9fa2c2 100644 --- a/src/rrd_format.h +++ b/src/rrd_format.h @@ -22,19 +22,7 @@ #define RRD_VERSION "0002" #define FLOAT_COOKIE 8.642135E130 -#if defined(WIN32) -#define DNAN ((double)fmod(0.0,0.0)) -#define DINF ((double)log(0.0)) -#else - -#define DNAN ((double)(0.0/0.0)) /* we use a DNAN to - * represent the UNKNOWN - * */ -#define DINF ((double)(1.0/0.0)) /* we use a DINF to - * represent a value at the upper or - * lower border of the graph ... - * */ -#endif +#include "rrd_nan_inf.h" typedef union unival { unsigned long u_cnt; @@ -144,7 +132,7 @@ enum ds_param_en { DS_mrhb_cnt=0, /* minimum required heartbeat. A * least every ds_mrhb seconds, * otherwise it is regarded dead and * will be set to UNKNOWN */ - DS_min_val, /* the processed input of a ds must */ + DS_min_val, /* the processed input of a ds must */ DS_max_val, /* be between max_val and min_val * both can be set to UNKNOWN if you * do not care. Data outside the limits @@ -172,7 +160,7 @@ enum cf_en { CF_AVERAGE=0, /* data consolidation functions */ CF_MINIMUM, CF_MAXIMUM, CF_LAST, - CF_HWPREDICT, + CF_HWPREDICT, /* An array of predictions using the seasonal * Holt-Winters algorithm. Requires an RRA of type * CF_SEASONAL for this data source. */