mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
timeInSeconds * 1000
timeInSeconds is int type, if timeInSeconds is very big, it makes "timeInseconds * 1000" very small even 0
This commit is contained in:
parent
c74dada854
commit
f5eae55abb
@ -120,7 +120,7 @@ public class Merovingian2 extends StandardMBean implements MerovingianMBean {
|
||||
}
|
||||
long startTime = InaccurateClock.getTime();
|
||||
|
||||
while ((InaccurateClock.getTime() - startTime) < (timeInSeconds * 1000)) {
|
||||
while ((InaccurateClock.getTime() - startTime) < (timeInSeconds * 1000l)) {
|
||||
int count = owns(key);
|
||||
|
||||
if (count >= 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user