mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Sunstone host capacity should display gathered data
(cherry picked from commit c5de4c56330c2299995159e44cf2e61ec06fae74) (cherry picked from commit 1cf07c32a3783e5cbb5d1b32495b33cb0f2389d1)
This commit is contained in:
parent
ce2b6f0a67
commit
df28be1ef8
@ -27,7 +27,7 @@ define(function(require) {
|
||||
*/
|
||||
var _html = function(info) {
|
||||
var total = parseInt(info.TOTAL_MB);
|
||||
var used = total - parseInt(info.FREE_MB);
|
||||
var used = parseInt(info.USED_MB);
|
||||
|
||||
if (total > 0) {
|
||||
var ratio = Math.round((used / total) * 100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user