|
@@ -135,6 +135,6 @@ public class DeviceLp implements Serializable {
|
|
|
*/
|
|
|
public Integer getStatus() {
|
|
|
if (updateTime == null || wakeInt == null) return 0;
|
|
|
- return updateTime.compareTo(LocalDateTime.now().minusMinutes(wakeInt.divide(new BigDecimal(60), BigDecimal.ROUND_HALF_DOWN).intValue() + 5));
|
|
|
+ return updateTime.compareTo(LocalDateTime.now().minusMinutes(wakeInt.multiply(new BigDecimal(60)).intValue() + 5));
|
|
|
}
|
|
|
}
|