Skip to content

Commit

Permalink
better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tanelpoder committed Jan 30, 2025
1 parent 0c31776 commit fef2e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cpumhz
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ printf "%-8s %3s %s\n" "MHz" "Num" "Visual"
# using uniq -c into frequency range buckets
# the int(... + 0.5) trick is for rounding in awk
grep MHz /proc/cpuinfo | \
awk '{ printf "%02d00..99\n", int($4/100) }' | \
awk '{ printf "%2d00..99\n", int($4/100) }' | \
sort | \
uniq -c | \
sort -k2,2 -nr | \
Expand Down

0 comments on commit fef2e09

Please sign in to comment.