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

This commit is contained in:
Torkel Ödegaard 2014-11-15 10:38:01 +01:00
parent 640c558446
commit bde138177d

View File

@ -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 };
}