[pve-devel] [PATCH manager 1/4] optimize 'running' field
Dominik Csapak
d.csapak at proxmox.com
Wed May 3 17:04:26 CEST 2017
we do not need to check for qemu/lxc/node because the other types
do not have an uptime value
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/data/ResourceStore.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/www/manager6/data/ResourceStore.js b/www/manager6/data/ResourceStore.js
index fd8f0e8a..8770d152 100644
--- a/www/manager6/data/ResourceStore.js
+++ b/www/manager6/data/ResourceStore.js
@@ -53,11 +53,7 @@ Ext.define('PVE.data.ResourceStore', {
hidden: true,
convert: function(value, record) {
var info = record.data;
- if (info.type === 'qemu' || info.type === 'lxc' || info.type === 'node') {
- return (Ext.isNumeric(info.uptime) && (info.uptime > 0));
- } else {
- return false;
- }
+ return (Ext.isNumeric(info.uptime) && (info.uptime > 0));
}
},
text: {
--
2.11.0
More information about the pve-devel
mailing list