* [PATCH pve-manager] pveperf: make bogomips regular expression case insensitive
@ 2026-08-04 13:54 Kaiyang Wu
2026-08-06 13:20 ` applied: " Fiona Ebner
0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread
end of thread, other threads:[~2026-08-06 13:20 UTC | newest]
Thread overview: 2+ messages (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
2026-08-06 13:20 ` applied: " Fiona Ebner
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.