Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bring Metrics LiveData significant digits format to be inline with ot…
Browse files Browse the repository at this point in the history
…her fields. There are cases when it is off because it is server defined not client defined as live data values are.
  • Loading branch information
mtho11 committed Apr 23, 2014
1 parent 1b551ae commit f9d317f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ private String buildLiveValue(MetricDisplaySummary from) {
doubleValue = Double.parseDouble(measurementData.getValue().toString());
}

String value = MeasurementConverterClient.formatToSignificantPrecision(new double[] { doubleValue },
MeasurementUnits.valueOf(from.getUnits()), true)[0];
String liveValue = MeasurementConverterClient.format(doubleValue,
MeasurementUnits.valueOf(from.getUnits()), true, 0, 1);

sb.append(value);
sb.append(liveValue);

break;
}
Expand Down

0 comments on commit f9d317f

Please sign in to comment.