Skip to content

Commit

Permalink
hardware.cgi: fix cpu name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Bellard committed Jul 8, 2019
1 parent 768fc98 commit bc4b33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ EOT

# CPU frequency
if [ -n "$(ls /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 2>/dev/null)" ]; then
echo "<p><span data-icon=\"@cpu@\">$(sed '/name/!d;s|.*: ||;s|(TM)|™|;s|(R)|®|;q' /proc/cpuinfo) :</span>"
echo "<p><span data-icon=\"@cpu@\">$(sed '/name/!d;s|.*: ||;s|(TM)|™|g;s|(R)|®|g' /proc/cpuinfo | uniq -c) :</span>"
for f in /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq; do
awk '{ print $1/1000 "MHz" }' < $f
done
Expand Down

0 comments on commit bc4b33f

Please # to comment.