Commit 116335d7 authored by wujiang's avatar wujiang

修改偏差率显示

parent 4676d3f7
......@@ -2211,8 +2211,10 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
c = -c;
}
double pcv = c / avageValue;
pcv = Double.valueOf(String.format(CommonConstans.Twodecimalplaces, pcv));
resultMap.put("pcv", pcv);
pcv=pcv*100;
pcv=Math.round(pcv);
//pcv = Double.valueOf(String.format(CommonConstans.Twodecimalplaces, pcv));
resultMap.put("pcv", (int)pcv+"%");
resultList.add(resultMap);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment