diff --git a/src/commons/scss/_base.scss b/src/commons/scss/_base.scss index 4641c3e7..5fbf991a 100644 --- a/src/commons/scss/_base.scss +++ b/src/commons/scss/_base.scss @@ -113,9 +113,9 @@ display: flex; flex-direction: row; flex-wrap: nowrap; - justify-content: space-between; + justify-content: space-evenly; .btn { - width: 90px; + /*width: 90px;*/ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/src/commons/stores/brick-store.js b/src/commons/stores/brick-store.js index 4866ddf1..c5d9513c 100644 --- a/src/commons/stores/brick-store.js +++ b/src/commons/stores/brick-store.js @@ -94,14 +94,19 @@ function _calcUtilization(bricks) { var len = bricks.length, utilization = { used: 0, total: 0 }, - i; + i, + percent_used, + used, + total; for (i = 0; i < len; i++) { - utilization.used += parseFloat(bricks[i].utilization.used); + used = parseFloat(bricks[i].utilization.used); + total = parseFloat(bricks[i].utilization.total); + utilization.used += (used * total) / 100; utilization.total += parseFloat(bricks[i].utilization.total); } - - utilization.used = utilization.used.toFixed(2); + percent_used = (utilization.used / utilization.total) * 100; + utilization.used = percent_used.toFixed(2); utilization.total = utilization.total; return utilization; diff --git a/src/commons/stores/cluster-store.js b/src/commons/stores/cluster-store.js index f5b85e77..653afc92 100644 --- a/src/commons/stores/cluster-store.js +++ b/src/commons/stores/cluster-store.js @@ -111,7 +111,7 @@ */ store.importCluster = function(cluster, enableProfiling) { var requestData = { - "Cluster.enable_volume_profiling": enableProfiling ? "yes" : "no" + "enable_volume_profiling": enableProfiling ? "yes" : "no" }, deferred; diff --git a/src/commons/stores/node-store.js b/src/commons/stores/node-store.js index 8bf4df91..69b2603a 100644 --- a/src/commons/stores/node-store.js +++ b/src/commons/stores/node-store.js @@ -95,6 +95,7 @@ host.role = store.findRole(list[i].tags).role; host.integrationId = list[i].cluster.integration_id; host.managed = _getManagedState(clusters, host); + host.alerts = list[i].alerts ? list[i].alerts : "No Data"; hostList.push(host); } diff --git a/src/commons/stores/volume-store.js b/src/commons/stores/volume-store.js index 80ed5d96..9509c7b9 100644 --- a/src/commons/stores/volume-store.js +++ b/src/commons/stores/volume-store.js @@ -46,7 +46,7 @@ temp.clusterId = data[i].cluster_id; temp.rebalStatus = data[i].rebal_status; temp.brickCount = data[i].brick_count; - temp.alertCount = data[i].alert_count; + temp.alertCount = data[i].alert_count ? data[i].alert_count : "No Data"; volumeList.push(temp); } return volumeList; diff --git a/src/modules/bricks/host-bricks/host-bricks.html b/src/modules/bricks/host-bricks/host-bricks.html index 7bbd1b04..d16bc612 100644 --- a/src/modules/bricks/host-bricks/host-bricks.html +++ b/src/modules/bricks/host-bricks/host-bricks.html @@ -52,7 +52,7 @@