From: Costa Tsaousis (ktsaou) Date: Sat, 11 Feb 2017 23:10:48 +0000 (+0200) Subject: properly reset charts after max time of refreshes; fixes #1631 X-Git-Tag: ab-debian_0.20170213.01-0ab1~1^2~9^2 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f29bb43a52cf50904932b154d9f91483e157b3d;hp=7558f2b6dc481d15de65fbf04ac7b8d0b4a1ef65;p=netdata.git properly reset charts after max time of refreshes; fixes #1631 --- diff --git a/web/dashboard.js b/web/dashboard.js index 9078b26e..5119a787 100644 --- a/web/dashboard.js +++ b/web/dashboard.js @@ -3139,7 +3139,8 @@ var NETDATA = window.NETDATA || {}; if(this.debug === true) this.log('max updates of ' + this.updates_since_last_creation.toString() + ' reached. Forcing re-generation.'); - this.chart_created = false; + init(); + return; } // check and update the legend diff --git a/web/index.html b/web/index.html index e8e821f4..19a5fd5e 100644 --- a/web/index.html +++ b/web/index.html @@ -3427,4 +3427,4 @@ - +