mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 22:14:13 +09:00
Bug #2689: Adjust to correct MONITORING_INTERVAL variable
This commit is contained in:
1 parent
64b6a13908
commit
ce9c8eacb5
1 file changed
+1
-1
@@ -95,7 +95,7 @@ if repeat
|
||||
# Retrieve host monitor interval
|
||||
monitor_interval = nil
|
||||
File.read(CONFIG_FILE).each{|line|
|
||||
monitor_interval = line.split("=").last.to_i if /HOST_MONITORING_INTERVAL/=~line
|
||||
monitor_interval = line.split("=").last.to_i if /MONITORING_INTERVAL/=~line
|
||||
}
|
||||
# Sleep through the desired number of monitor interval
|
||||
sleep (repeat * monitor_interval)
|
||||
|
||||
Reference in new issue
Block a user