mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
B #: fix minor lxd monitoring bug (#183)
This commit is contained in:
parent
40ad20451a
commit
ff8980cac5
@ -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 = []
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user