summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2015-07-14 15:16:12 +0200
committerShevAbam <shevabam@gmail.com>2015-07-14 15:16:12 +0200
commit118bb1862cfca13201d349df8ec23b830921efb5 (patch)
tree068eba472ca5bf77f26e2fa3c408811eb821f9ad /js
parentb330d193bbd0170b6caabd604d30fc64c7b1d2d3 (diff)
Disk : add filesystem and option to enable/disable it (disk:show_filesystem)
Network usage : center values of receive and transmit
Diffstat (limited to 'js')
-rw-r--r--js/esm.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/esm.js b/js/esm.js
index ee7d52c..1016440 100644
--- a/js/esm.js
+++ b/js/esm.js
@@ -152,7 +152,10 @@ esm.getDisk = function() {
var html = '';
html += '<tr>';
- html += '<td>'+data[line].filesystem+'</td>';
+
+ if (typeof data[line].filesystem != 'undefined')
+ html += '<td>'+data[line].filesystem+'</td>';
+
html += '<td>'+data[line].mount+'</td>';
html += '<td><div class="progressbar-wrap"><div class="progressbar '+bar_class+'" style="width: '+data[line].percent_used+'%;">'+data[line].percent_used+'%</div></div></td>';
html += '<td class="t-center">'+data[line].free+'</td>';
@@ -216,8 +219,8 @@ esm.getNetwork = function() {
html += '<tr>';
html += '<td>'+data[line].interface+'</td>';
html += '<td>'+data[line].ip+'</td>';
- html += '<td class="t-right">'+data[line].receive+'</td>';
- html += '<td class="t-right">'+data[line].transmit+'</td>';
+ html += '<td class="t-center">'+data[line].receive+'</td>';
+ html += '<td class="t-center">'+data[line].transmit+'</td>';
html += '</tr>';
$box.append(html);