@@ -3588,8 +3588,9 @@ public void reallyRun() {
35883588 final HashMap <Long , Long > stillFree = new HashMap <>();
35893589
35903590 final List <Long > networkIds = _networksDao .findNetworksToGarbageCollect ();
3591- final int netGcWait = NumbersUtil .parseInt (_configDao .getValue (NetworkGcWait .key ()), 60 );
3592- logger .info ("NetworkGarbageCollector uses '{}' seconds for GC interval." , netGcWait );
3591+ final int netGcWait = NetworkGcWait .value ();
3592+ final int netGcInterval = NetworkGcInterval .value ();
3593+ logger .info ("NetworkGarbageCollector uses '{}' seconds for GC wait and '{}' seconds for GC interval." , netGcWait , netGcInterval );
35933594
35943595 for (final Long networkId : networkIds ) {
35953596 if (!_networkModel .isNetworkReadyForGc (networkId )) {
@@ -4910,10 +4911,10 @@ public String getConfigComponentName() {
49104911 return NetworkOrchestrationService .class .getSimpleName ();
49114912 }
49124913
4913- public static final ConfigKey <Integer > NetworkGcWait = new ConfigKey <>(Integer .class , "network.gc.wait" , "Advanced" , "600" ,
4914- "Time (in seconds) to wait before shutting down a network that's not in used" , false , Scope .Global , null );
4915- public static final ConfigKey <Integer > NetworkGcInterval = new ConfigKey <>(Integer .class , "network.gc.interval" , "Advanced" , "600" ,
4916- "Seconds to wait before checking for networks to shutdown" , true , Scope .Global , null );
4914+ public static final ConfigKey <Integer > NetworkGcWait = new ConfigKey <Integer >(Integer .class , "network.gc.wait" , "Advanced" , "600" ,
4915+ "Time (in seconds) to wait before shutting down a network that's not in used" , true , Scope .Global , null );
4916+ public static final ConfigKey <Integer > NetworkGcInterval = new ConfigKey <Integer >(Integer .class , "network.gc.interval" , "Advanced" , "600" ,
4917+ "Seconds to wait before checking for networks to shutdown" , false , Scope .Global , null );
49174918
49184919 @ Override
49194920 public ConfigKey <?>[] getConfigKeys () {
0 commit comments