[pve-devel] [PATCH 2/2] dynamically adjust interval based on last runtime
Dietmar Maurer
dietmar at proxmox.com
Wed Oct 9 07:07:55 CEST 2013
> Am 08.10.2013 10:44, schrieb Dietmar Maurer:
> >> But right now there is no callback in:
> >> PVE.data.UpdateQueue.queue
> >
> > It is not very hard to add one ;-)
>
> If you're familiar with JS it def. isn't ;-)
Sure. I just committed a patch to implement that callback:
https://git.proxmox.com/?p=pve-manager.git;a=commit;h=962a7b82104f2fcdfdf5a6a180054dd617e7b9f2
Please can you rewrite your patch?
You currently use:
interval = config.interval + (me.updateruntime*2);
I wonder if it would be better to use fixed delays, something like:
if (runtime > 500) interval = interval*2;
what values do you get for 'updateruntime'?
More information about the pve-devel
mailing list