]> arthur.barton.de Git - netdata.git/blobdiff - src/rrd.c
fix compilation warnings for 32bit machines
[netdata.git] / src / rrd.c
index bd0175efc0fca47dc30aaeec187b8a706eb05459..658ad46bae226e8d60eb206ab8f5ad16c58ef80a 100644 (file)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -1042,8 +1042,10 @@ void rrdset_next_usec(RRDSET *st, usec_t microseconds)
     }
     else {
         // microseconds has the time since the last collection
+#ifdef NETDATA_INTERNAL_CHECKS
         usec_t now_usec = timeval_usec(&now);
         usec_t last_usec = timeval_usec(&st->last_collected_time);
+#endif
         usec_t since_last_usec = dt_usec(&now, &st->last_collected_time);
 
         // verify the microseconds given is good