mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
Bug #2689: Adjust to correct MONITORING_INTERVAL variable
This commit is contained in:
parent
64b6a13908
commit
ce9c8eacb5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user