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:
parent
f5356c7abb
commit
4827198ebb
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user