]> arthur.barton.de Git - netdata.git/commitdiff
checked for exit status before committing values to the database, to avoid the spikes...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Jun 2016 12:24:47 +0000 (15:24 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Jun 2016 12:24:47 +0000 (15:24 +0300)
src/rrd.c

index 2a134fc2a8178dbe4d4e9858e64d56547e08c69c..60e8d6f2f192567ae967892359ec6c92c6860127 100644 (file)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -18,6 +18,7 @@
 #include "log.h"
 #include "appconfig.h"
 
+#include "main.h"
 #include "rrd.h"
 
 #define RRD_DEFAULT_GAP_INTERPOLATIONS 1
@@ -810,6 +811,8 @@ void rrdset_next_plugins(RRDSET *st)
 
 unsigned long long rrdset_done(RRDSET *st)
 {
+       if(unlikely(netdata_exit)) return 0;
+
        debug(D_RRD_CALLS, "rrdset_done() for chart %s", st->name);
 
        RRDDIM *rd, *last;