|
@@ -38,7 +38,7 @@ public class DeviceOnlineTimer implements CommonTimerTaskRunner {
|
|
|
Integer total = deviceOff+deviceOn;
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
try {
|
|
|
- rate = (deviceOn/total)*100;
|
|
|
+ rate = ((float)deviceOn/(float)total)*100;
|
|
|
}catch (ArithmeticException e){
|
|
|
System.out.println(e);
|
|
|
}
|