优化常用单位、交换机心跳上报优化、agent更新列表优化
This commit is contained in:
+3
@@ -106,6 +106,9 @@ public class UnitChangeUtil {
|
||||
}
|
||||
|
||||
try {
|
||||
if("NaN".equals(numberStr)){
|
||||
numberStr = "0";
|
||||
}
|
||||
BigDecimal number = new BigDecimal(numberStr);
|
||||
return number.setScale(1, RoundingMode.HALF_UP).toString();
|
||||
} catch (NumberFormatException e) {
|
||||
|
||||
Reference in New Issue
Block a user