Singlestat: fixed decimal issue when value was 1, Fixes #1066
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user