]> arthur.barton.de Git - netdata.git/commitdiff
moved an error to internal checks
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 22 Dec 2015 00:35:49 +0000 (02:35 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 22 Dec 2015 00:35:49 +0000 (02:35 +0200)
netdata-installer.sh
src/rrd.c

index 91a09f3c40ed297917523bb5e91bbcb4f69c330b..de1ec7cfe12800ceba1c83ca76aad8f5cf487ee7 100755 (executable)
@@ -60,7 +60,7 @@ You many need to check these:
 
 2. You need basic build tools installed, like:
 
-   gcc autoconf automake pgk-config
+   gcc autoconf automake pkg-config
 
 3. If your system cannot find ZLIB, although it is installed
    run me with the option:  --zlib-is-really-here
index ac96ea6d8125fe8cc067508a061cfd90b557dfcc..3dd617a823f83bb4d5aa1774c7301fc78ed2f428 100755 (executable)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -1048,7 +1048,9 @@ unsigned long long rrdset_done(RRDSET *st)
        int iterations = (now_ut - last_ut) / (st->update_every * 1000000ULL);
 
        for( ; likely(next_ut <= now_ut) ; next_ut += st->update_every * 1000000ULL, iterations-- ) {
+#ifdef NETDATA_INTERNAL_CHECKS
                if(iterations <= 0) error("iterations calculation wrapped!");
+#endif
 
                if(unlikely(st->debug)) {
                        debug(D_RRD_STATS, "%s: last ut = %0.3Lf (last updated time)", st->name, (long double)last_ut/1000000.0);