1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

F #1495: Minimized overhead | VMs caching

* Minimized overhead in Sinatra
* Caching all pools
This commit is contained in:
Abel Coronado 2017-11-24 12:10:51 +01:00 committed by Ruben S. Montero
parent f5356c7abb
commit 4827198ebb
2 changed files with 243 additions and 239 deletions

File diff suppressed because it is too large Load Diff

View File

@ -87,8 +87,6 @@ define(function(require) {
'vms': {
'html': require('hbs!./dashboard-tab/vms'),
'onShow': function() {
Sunstone.runAction("VM.list");
var end_time = -1; // today
var start_time = Math.floor(new Date().getTime() / 1000);
start_time = start_time - 604800; // 604800 = 7 days = 7*24*60*60
@ -107,6 +105,7 @@ define(function(require) {
success: function(req, response) {
Accounting.fillAccounting($("#dashboard_vm_accounting"), req, response, no_table);
Accounting.fillAccounting($("#dashboard_user_accounting"), req, response, no_table);
Sunstone.runAction("VM.list");
},
error: Notifier.onError,
data: options