mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
parent
9303341b4e
commit
67c89bfa08
@ -59,6 +59,9 @@ module Firecracker
|
||||
|
||||
# Read metrics
|
||||
metrics_f = File.read(metrics_path).split("\n")[-1]
|
||||
|
||||
return if metrics_f.nil?
|
||||
|
||||
metrics_f.tr!("\u0000", '')
|
||||
|
||||
JSON.parse(metrics_f)
|
||||
|
Loading…
x
Reference in New Issue
Block a user