[pve-devel] [PATCH 2/2] dynamically adjust interval based on last runtime

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Tue Oct 8 10:35:23 CEST 2013


Am 08.10.2013 10:14, schrieb Dietmar Maurer:
>> But what's the advantage then? We just introduce an additional callback.
>> Maybe i miss an important part in your idea.
> 
> You patch is not 100% clean, because it can still issue multiple calls.
*urg* sure.

But right now there is no callback in:
PVE.data.UpdateQueue.queue

it's just that piece of code:

        Ext.apply(me, {
            queue: function(store) {
                if (!store.storeid) {
                    throw "unable to queue store without storeid";
                }
                if (!queue_idx[store.storeid]) {
                    queue_idx[store.storeid] = store;
                    queue.push(store);
                }
                start_update();
            }
        });

Stefan



More information about the pve-devel mailing list