Bug #2689: Adjust to correct MONITORING_INTERVAL variable

This commit is contained in:
Tino Vazquez committed 2014-01-29 19:16:03 +01:00
1 parent 64b6a13908
commit ce9c8eacb5
1 file changed
+1 -1
+1 -1
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)