From 2bf59440d96ea29f04b3964db7b78367620432c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Fri, 21 Jun 2024 19:15:29 +0900 Subject: =?UTF-8?q?=E3=81=93=E3=81=93=E3=82=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpu.c') diff --git a/src/cpu.c b/src/cpu.c index f479517..b9bb7de 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -28,7 +28,8 @@ const char *display_cpu() { "if [ \"$(LC_ALL=C cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit 2>&1)\"" " != \"cat: /sys/devices/system/cpu/cpu0/cpufreq/bios_limit: " "No such file or directory\" ]; then " - "cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit; else " + "cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit | " + "awk '{printf \"%.2f\", $1/1000000}'; else " "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq | " "awk '{printf \"%.2f\", $1/1000000}'; fi && " "echo \"GHz (\" && nproc && echo \" core)\""); -- cgit v1.2.3