[pve-devel] [PATCH manager] ui: {guest, node} summary: use correct unit for CPU usage

Fiona Ebner f.ebner at proxmox.com
Fri Nov 4 08:42:55 CET 2022


One could also think about showing something like '% of N CPUs', but
this can be inaccurate for older data, because the number of CPUs can
change.

Reported in the community forum:
https://forum.proxmox.com/threads/117362/

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 www/manager6/node/Summary.js       | 1 +
 www/manager6/panel/GuestSummary.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/manager6/node/Summary.js b/www/manager6/node/Summary.js
index 8680fa5f..320f2247 100644
--- a/www/manager6/node/Summary.js
+++ b/www/manager6/node/Summary.js
@@ -162,6 +162,7 @@ Ext.define('PVE.node.Summary', {
 			    title: gettext('CPU usage'),
 			    fields: ['cpu', 'iowait'],
 			    fieldTitles: [gettext('CPU usage'), gettext('IO delay')],
+			    unit: 'percent',
 			    store: rrdstore,
 			},
 			{
diff --git a/www/manager6/panel/GuestSummary.js b/www/manager6/panel/GuestSummary.js
index 6532c3e9..1565db3f 100644
--- a/www/manager6/panel/GuestSummary.js
+++ b/www/manager6/panel/GuestSummary.js
@@ -75,6 +75,7 @@ Ext.define('PVE.guest.Summary', {
 		    pveSelNode: me.pveSelNode,
 		    fields: ['cpu'],
 		    fieldTitles: [gettext('CPU usage')],
+		    unit: 'percent',
 		    store: rrdstore,
 		},
 		{
-- 
2.30.2






More information about the pve-devel mailing list