1
0
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:
Dan Cazacu 2024-01-16 14:46:29 +02:00 committed by Ruben S. Montero
parent 43b1d7d6dd
commit fcd33803d1
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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);