1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-29 09:49:28 +03:00

B #: fix minor lxd monitoring bug (#183)

This commit is contained in:
Christian González
2020-09-04 14:09:59 +02:00
committed by GitHub
parent 40ad20451a
commit ff8980cac5
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ class VirtualMachineDB
last = @db.execute("SELECT MAX(timestamp) from #{@dataset}").flatten![0]
last ||= @mtime.to_i
return sync_status(@host, @host_id) if last == 0 || time > (last + @conf[:sync])
return sync_status(@host, @host_id) if last == 0 || time > (last + @conf[:sync].to_i)
status_str = ''
monitor_ids = []

View File

@ -55,7 +55,7 @@ host_id = ARGV[-2]
begin
config = REXML::Document.new(xml_txt).root
sync = config.elements['PROBES_PERIOD/SYNC_STATE_VM'].text.to_s
sync = config.elements['PROBES_PERIOD/SYNC_STATE_VM'].text.to_i
rescue StandardError
sync = 180
end