all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-manager] pveperf: make bogomips regular expression case insensitive
@ 2026-08-04 13:54 Kaiyang Wu
  0 siblings, 0 replies; only message in thread
From: Kaiyang Wu @ 2026-08-04 13:54 UTC (permalink / raw)
  To: pve-devel; +Cc: Kaiyang Wu

'pveperf' prints 0 BogoMIPS on arm64 due to the key in '/proc/cpuinfo'
being named "BogoMIPS" instead of "bogomips". Make the regular
expression case insensitive to match both "bogomips" on x86-64 and
"BogoMIPS" on arm64.

Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
---
 bin/pveperf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/pveperf b/bin/pveperf
index 39b020e0..0ef4dbd7 100755
--- a/bin/pveperf
+++ b/bin/pveperf
@@ -28,7 +28,7 @@ sub test_bogomips {
     open(TMP, "/proc/cpuinfo");
 
     while (my $line = <TMP>) {
-        if ($line =~ m/^bogomips\s*:\s*(\d+\.\d+)\s*$/) {
+        if ($line =~ m/^bogomips\s*:\s*(\d+\.\d+)\s*$/i) {
             $bogomips += $1;
         }
     }
-- 
2.55.0




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-04 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 13:54 [PATCH pve-manager] pveperf: make bogomips regular expression case insensitive Kaiyang Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal