Merge pull request #329 from konimex/master
Fixed percent not displaying in cpu_display
This commit is contained in:
commit
de96b1106f
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -919,10 +919,10 @@ getcpu_usage() {
|
||||||
|
|
||||||
# Print the bar
|
# Print the bar
|
||||||
case "$cpu_display" in
|
case "$cpu_display" in
|
||||||
"info") cpu_usage="${cpu_usage}%" ;;
|
|
||||||
"bar") cpu_usage="$(bar $cpu_usage 100)" ;;
|
"bar") cpu_usage="$(bar $cpu_usage 100)" ;;
|
||||||
"infobar") cpu_usage="${cpu_usage}% $(bar $cpu_usage 100)" ;;
|
"infobar") cpu_usage="${cpu_usage}% $(bar $cpu_usage 100)" ;;
|
||||||
"barinfo") cpu_usage="$(bar $cpu_usage 100) ${cpu_usage}%" ;;
|
"barinfo") cpu_usage="$(bar $cpu_usage 100) ${cpu_usage}%" ;;
|
||||||
|
*) cpu_usage="${cpu_usage}%" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue