Skip to content
This repository was archived by the owner on Jan 15, 2020. It is now read-only.

Commit 676b2d1

Browse files
committed
Fix overflow before widening issues reported by Coverity
1 parent 885e08d commit 676b2d1

2 files changed

Lines changed: 53 additions & 56 deletions

File tree

engine/orchestration/src/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private void processReport(long hostId, Map<Long, VirtualMachine.PowerState> tra
107107
s_logger.debug("Run missing VM report. current time: " + currentTime.getTime());
108108

109109
// 2 times of sync-update interval for graceful period
110-
long milliSecondsGracefullPeriod = PingInterval.value() * 2000;
110+
long milliSecondsGracefullPeriod = PingInterval.value() * 2000L;
111111

112112
for (VMInstanceVO instance : vmsThatAreMissingReport) {
113113

0 commit comments

Comments
 (0)