[pve-devel] [PATCH] use a calculated interval for updating the ressources / screens
Stefan Priebe
s.priebe at profihost.ag
Wed Oct 9 09:24:21 CEST 2013
---
www/manager/data/UpdateStore.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/manager/data/UpdateStore.js b/www/manager/data/UpdateStore.js
index 5d26335..b927930 100644
--- a/www/manager/data/UpdateStore.js
+++ b/www/manager/data/UpdateStore.js
@@ -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);
--
1.7.10.4
More information about the pve-devel
mailing list