HBASE-15439 getMaximumAllowedTimeBetweenRuns in ScheduledChore ignores the TimeUnit (Jingcheng Du)

This commit is contained in:
tedyu 2016-03-14 07:09:58 -07:00
parent 88ca84f685
commit 122e6f5793
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ public abstract class ScheduledChore implements Runnable {
private double getMaximumAllowedTimeBetweenRuns() {
// Threshold used to determine if the Chore's current run started too late
return 1.5 * period;
return 1.5 * timeUnit.toMillis(period);
}
private synchronized boolean isValidTime(final long time) {