omit the "1x" if only one cpu

add some spacing between "2 x "
This commit is contained in:
Dustin Kirkland 2008-12-17 22:08:22 -06:00
commit 1f806d2c1e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
#!/bin/sh #!/bin/sh
grep -c "^processor.*:" /proc/cpuinfo count=`grep -c "^processor.*:" /proc/cpuinfo`
if [ "$count" = "1" ]; then
echo
else
echo "$count x "
fi

View file

@ -22,4 +22,4 @@
source /usr/share/screen-profiles/profiles/common source /usr/share/screen-profiles/profiles/common
caption always '%{= Wk}%{= Wk}%?%-Lw%?%{= yk}%n %t%{= Wk} %?%+Lw%?%?%= %{= Wk}' 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'