Commit 245edd0e authored by Stefan Priebe's avatar Stefan Priebe Committed by Dietmar Maurer

use a calculated interval for updating the ressources / screens

parent 962a7b82
......@@ -19,7 +19,8 @@ Ext.define('PVE.data.UpdateStore', {
var run_load_task = function() {
if (PVE.Utils.authOK()) {
PVE.data.UpdateQueue.queue(me, function(runtime, success) {
load_task.delay(config.interval, run_load_task);
var interval = config.interval + runtime*2;
load_task.delay(interval, run_load_task);
});
} else {
load_task.delay(200, run_load_task);
......
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