]> arthur.barton.de Git - netdata.git/commitdiff
respect caching of decimal digits calculation when custom dashboard request specific...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 5 Feb 2017 22:15:26 +0000 (00:15 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 5 Feb 2017 22:15:26 +0000 (00:15 +0200)
web/dashboard.js

index a462f10faf63be6486cbac07b569090e9c6dc211..230f24486c0f767f9c1fbe625c243f259101caac 100644 (file)
@@ -2252,13 +2252,13 @@ var NETDATA = window.NETDATA || {};
             if(min === __legendFormatValueChartDecimalsLastMin && max === __legendFormatValueChartDecimalsLastMax)
                 return;
 
+            __legendFormatValueChartDecimalsLastMin = min;
+            __legendFormatValueChartDecimalsLastMax = max;
+
             if(this.value_decimal_detail !== -1) {
                 __legendFormatValueChartDecimals = this.value_decimal_detail;
             }
             else {
-                __legendFormatValueChartDecimalsLastMin = min;
-                __legendFormatValueChartDecimalsLastMax = max;
-
                 var delta;
 
                 if (min === max)