1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

oneacct always shown 0 in NETRX/NETTX

This commit is contained in:
Javi Fontan 2016-05-30 11:58:17 +02:00
parent da17b602ac
commit e0866542e0

View File

@ -157,12 +157,12 @@ class AcctHelper < OpenNebulaHelper::OneHelper
column :NETRX, "Data received from the network", :size=>6 do |d|
# NET is measured in bytes, unit_to_str expects KBytes
OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING/NETRX"].to_i / 1024.0, {})
OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING"]["NETRX"].to_i / 1024.0, {})
end
column :NETTX, "Data sent to the network", :size=>6 do |d|
# NET is measured in bytes, unit_to_str expects KBytes
OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING/NETTX"].to_i / 1024.0, {})
OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING"]["NETTX"].to_i / 1024.0, {})
end
column :DISK, "Total disk size used", :size=>6 do |d|