rhtyd commented on a change in pull request #2292: CLOUDSTACK-10108:ConfigKey 
based approach for reading 'ping' configua?
URL: https://github.com/apache/cloudstack/pull/2292#discussion_r158672147
 
 

 ##########
 File path: 
engine/orchestration/src/com/cloud/vm/VirtualMachinePowerStateSyncImpl.java
 ##########
 @@ -107,7 +104,7 @@ private void processReport(long hostId, Map<Long, 
VirtualMachine.PowerState> tra
                 s_logger.debug("Run missing VM report. current time: " + 
currentTime.getTime());
 
             // 2 times of sync-update interval for graceful period
-            long milliSecondsGracefullPeriod = PingInterval.value() * 2000L;
+            long milliSecondsGracefullPeriod = 
ManagementServiceConfiguration.PingInterval.value() * 2000L;
 
 Review comment:
   Since you've introduced a new `ManagementServiceConfiguration`, why not 
consume the value using a method?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to