summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu.c3
1 files changed, 2 insertions, 1 deletions
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)\"");