do not poll the syslog api call multiple times simultaneously,
since it can be very costly, depending on the journal size
with this, there is always only one per client
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
doLoad: function() {
var me = this;
+ me.running = true;
var view = me.getView();
var viewModel = me.getViewModel();
Proxmox.Utils.API2Request({
lines.length = total;
me.updateView(lines.join('<br>'), first - 1, total);
+ me.running = false;
},
failure: function(response) {
if (view.failCallback) {
var msg = response.htmlStatus;
Proxmox.Utils.setErrorMask(me, msg);
}
+ me.running = false;
}
});
},
}
if (me.scrollPosBottom() <= 1) {
- view.loadTask.delay(200);
+ if (!me.running) {
+ view.loadTask.delay(200);
+ }
}
},
interval: 1000