fix autoscaling termination duration bug

This commit is contained in:
fjy 2013-11-15 19:21:25 -08:00
parent a86d3af17e
commit 5d7173ac98
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public class SimpleResourceManagementStrategy implements ResourceManagementStrat
{
return input.getRunningTasks().isEmpty()
&& System.currentTimeMillis() - input.getLastCompletedTaskTime().getMillis()
>= config.getWorkerIdleTimeout().getMillis();
>= config.getWorkerIdleTimeout().toStandardDuration().getMillis();
}
}
)