Commit aecfc213 authored by Leo Iannacone's avatar Leo Iannacone

show total size

parent 41286d64
...@@ -196,7 +196,8 @@ function Page_History() { ...@@ -196,7 +196,8 @@ function Page_History() {
var labels = []; var labels = [];
for (var distribution in socket_data) { for (var distribution in socket_data) {
if (distribution == 'size') { if (distribution == 'size') {
total_sizes.size = socket_data[distribution]; var total_size_in_gb = Number(socket_data.size / 1000).toFixed(1);
$("#disk-usage .total-size").text(total_size_in_gb + ' GB');
continue; continue;
} }
distributions.push(distribution); distributions.push(distribution);
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
</p> </p>
<div id="distributions-chart" class="ct-chart"></div> <div id="distributions-chart" class="ct-chart"></div>
</div> </div>
<div class="col-md-4"> <div id="disk-usage" class="col-md-4">
<p class="lead text-muted"> <p class="lead text-muted">
Disk usage Disk usage <span class="total-size"></span>
</p> </p>
<div id="disk-chart" class="ct-chart"></div> <div id="disk-chart" class="ct-chart"></div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment