@cryptotaxi247 / netdata-1 / commits / a87b90c1f

moved an error to internal checks

Costa Tsaousis (ktsaou) committed Dec 22, 2015 at 02:35 UTC a87b90c1ffa85e2fc7d7fa9599451d9410612f54
2 files changed +3 -1
netdata-installer.sh
+1 -1
@@ -60,7 +60,7 @@ You many need to check these:
60
61 2. You need basic build tools installed, like:
62
63 - gcc autoconf automake pgk-config
63 + gcc autoconf automake pkg-config
64
65 3. If your system cannot find ZLIB, although it is installed
66 run me with the option: --zlib-is-really-here
src/rrd.c
+2
@@ -1048,7 +1048,9 @@ unsigned long long rrdset_done(RRDSET *st)
1048 int iterations = (now_ut - last_ut) / (st->update_every * 1000000ULL);
1049
1050 for( ; likely(next_ut <= now_ut) ; next_ut += st->update_every * 1000000ULL, iterations-- ) {
1051 +#ifdef NETDATA_INTERNAL_CHECKS
1052 if(iterations <= 0) error("iterations calculation wrapped!");
1053 +#endif
1054
1055 if(unlikely(st->debug)) {
1056 debug(D_RRD_STATS, "%s: last ut = %0.3Lf (last updated time)", st->name, (long double)last_ut/1000000.0);