1
0
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:
Tino Vazquez 2014-01-29 19:16:03 +01:00
parent 64b6a13908
commit ce9c8eacb5

View File

@ -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)