Skip to content

Commit 53441a1

Browse files
Updated agent connections monitor thread timeunit to secs, in sync with the Wait config
1 parent b8359e8 commit 53441a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ public boolean start() {
726726

727727
_monitorExecutor.scheduleWithFixedDelay(new MonitorTask(), mgmtServiceConf.getPingInterval(), mgmtServiceConf.getPingInterval(), TimeUnit.SECONDS);
728728

729-
final int cleanupTime = Wait.value();
730-
newAgentConnectionsMonitor.scheduleAtFixedRate(new AgentNewConnectionsMonitorTask(), cleanupTime,
731-
cleanupTime, TimeUnit.MINUTES);
729+
final int cleanupTimeInSecs = Wait.value();
730+
newAgentConnectionsMonitor.scheduleAtFixedRate(new AgentNewConnectionsMonitorTask(), cleanupTimeInSecs,
731+
cleanupTimeInSecs, TimeUnit.SECONDS);
732732

733733
return true;
734734
}

0 commit comments

Comments
 (0)