Explorar o código

Singlestat: fixed decimal issue when value was 1, Fixes #1066

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
bde138177d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/app/panels/singlestat/module.js

+ 1 - 1
src/app/panels/singlestat/module.js

@@ -125,7 +125,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
 
     $scope.getDecimalsForValue = function(value) {
       var opts = {};
-      if (value === 0) {
+      if (value === 0 || value === 1) {
         return { decimals: 0, scaledDecimals: 0 };
       }