public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ui: {guest, node} summary: use correct unit for CPU usage
@ 2022-11-04  7:42 Fiona Ebner
  2022-11-04 10:44 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2022-11-04  7:42 UTC (permalink / raw)
  To: pve-devel

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@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-04 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-04  7:42 [pve-devel] [PATCH manager] ui: {guest, node} summary: use correct unit for CPU usage Fiona Ebner
2022-11-04 10:44 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal