Commit 55be595c authored by lichenchong's avatar lichenchong
Browse files

Heartbeat monitor changes to keep consistency with the capacity field in

the latest protocol file now.
parent 89046f3f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -526,9 +526,9 @@ function showNodeInfo(node) {
}

function renderCapacity(nodeInfo) {
    var used = nodeInfo.capacity.total - nodeInfo.capacity.remaining;
    var remaining = nodeInfo.capacity.remaining;
    var freePercentage = nodeInfo.capacity.remaining / nodeInfo.capacity.total;
	var remaining = nodeInfo.capacity.remaining * nodeInfo.capacity.total;
    var used = nodeInfo.capacity.total - remaining;
    var freePercentage = nodeInfo.capacity.remaining;

    if ($('#capacity').length > 0) {
        $.getScript('https://www.google.com/jsapi', function (data, textStatus) {
@@ -540,7 +540,7 @@ function renderCapacity(nodeInfo) {
                ]);

                var options = {
                    title: 'Capacity (MB)',
                    title: 'Capacity (B)',
                    is3D: true,
                    legend : {alignment : 'center', position: 'bottom'}
                };