[pve-devel] [PATCH] use a calculated interval for updating the ressources / screens

Dietmar Maurer dietmar at proxmox.com
Thu Oct 10 05:24:31 CEST 2013


Does that really solve the problem for you (at least partly)?

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Stefan Priebe
> Sent: Mittwoch, 09. Oktober 2013 09:24
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] use a calculated interval for updating the
> ressources / screens
> 
> ---
>  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
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list