[pve-devel] [PATCH 1/2] store runtime of queued tasks

Stefan Priebe s.priebe at profihost.ag
Mon Oct 7 08:28:04 CEST 2013


---
 www/manager/data/UpdateQueue.js |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager/data/UpdateQueue.js b/www/manager/data/UpdateQueue.js
index 3cf2aa8..8fd10f3 100644
--- a/www/manager/data/UpdateQueue.js
+++ b/www/manager/data/UpdateQueue.js
@@ -21,11 +21,13 @@ Ext.define('PVE.data.UpdateQueue', {
 	    }
 
 	    queue_idx[store.storeid] = null;
+	    store.updatestart = new Date();
 
 	    idle = false;
 	    store.load({
 		callback: function(records, operation, success) {
 		    idle = true;
+		    store.updateruntime = (new Date()).getTime()-store.updatestart.getTime();
 		    start_update();
 		}
 	    });
-- 
1.7.10.4




More information about the pve-devel mailing list