mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #1977: Better check for net info
This commit is contained in:
1 parent
a26585381a
commit
e2d6c666d8
1 file changed
+1
-1
@@ -184,7 +184,7 @@ class VIDriver
|
||||
str_info += "USEDCPU=" + get_used_cpu(vm) + " "
|
||||
str_info += "USEDMEMORY=" + get_used_memory(vm)
|
||||
|
||||
if net_info[vm] && net_info[:metrics] && net_info[vm][:metrics]["net.packetsRx"]
|
||||
if net_info[vm] && net_info[vm][:metrics] && net_info[vm][:metrics]["net.packetsRx"]
|
||||
str_info += " NETRX=" +
|
||||
net_info[vm][:metrics]["net.packetsRx"].first.to_s + " "
|
||||
str_info += "NETTX=" +
|
||||
|
||||
Reference in new issue
Block a user