1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

(cherry picked from commit ff8980cac56fa64647e11ba3382ce410b1f51f93)
This commit is contained in:
Christian González 2020-09-04 14:09:59 +02:00 committed by Ruben S. Montero
parent 4516352239
commit aa379a100e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
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