timeInSeconds * 1000

timeInSeconds is int type, if timeInSeconds is very big, it makes "timeInseconds * 1000" very small even 0
This commit is contained in:
Anthony Xu 2014-09-24 10:57:36 -07:00
parent c74dada854
commit f5eae55abb

View File

@ -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) {