mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
omit the "1x" if only one cpu
add some spacing between "2 x "
This commit is contained in:
parent
00df1d7a36
commit
1f806d2c1e
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
grep -c "^processor.*:" /proc/cpuinfo
|
||||
count=`grep -c "^processor.*:" /proc/cpuinfo`
|
||||
if [ "$count" = "1" ]; then
|
||||
echo
|
||||
else
|
||||
echo "$count x "
|
||||
fi
|
||||
|
|
|
@ -22,4 +22,4 @@
|
|||
source /usr/share/screen-profiles/profiles/common
|
||||
|
||||
caption always '%{= Wk}%{= Wk}%?%-Lw%?%{= yk}%n %t%{= Wk} %?%+Lw%?%?%= %{= Wk}'
|
||||
hardstatus string '%{= wk} %{+b r}\%{= y}o%{=b Y}/%{+b wk} %100` %{= Wk}|%= |%{+B bW}%102`%{= Wk}|%{+b rW}%101`%{= Wk}|%{g}%104`x%{+b gW}%103`%{= Wk}|%{= wk}%Y-%m-%d %c:%s'
|
||||
hardstatus string '%{= wk} %{+b r}\%{= y}o%{=b Y}/%{+b wk} %100` %{= Wk}|%= |%{+B bW}%102`%{= Wk}|%{+b rW}%101`%{= Wk}|%{g}%104`%{+b gW}%103`%{= Wk}|%{= wk}%Y-%m-%d %c:%s'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue