Browse Source

Fixed memory usage progress bar not working when no details

pull/24/head
Teknikode 8 years ago
parent
commit
27153e0e42
  1. 2
      templates/default/js/stats.js

2
templates/default/js/stats.js

@ -135,7 +135,7 @@ function renderMemory(data) { @@ -135,7 +135,7 @@ function renderMemory(data) {
},
Usage: {
html: function () {
if (this["Details"] == undefined) {
if (this["Details"] == undefined || this["Details"].length <= 0) {
return '<div class="progress">' +
'<div class="progress-bar progress-bar-info" style="width: ' + this["Percent"] + '%;"></div>' +
'</div><div class="percent">' + this["Percent"] + '%</div>';

Loading…
Cancel
Save