Commit 472c0da7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cfde4271
...@@ -613,10 +613,13 @@ cpustat() { ...@@ -613,10 +613,13 @@ cpustat() {
stat+=" $sname·$du" stat+=" $sname·$du"
#stat+=" $du·$sname" #stat+=" $du·$sname"
done done
if [ `echo "$out" | wc -l` -gt 1 ]; then if [ `echo "$out" | wc -l` -gt 1 ]; then
# multiline out - add another line
echo "$out" echo "$out"
echo "$stat" echo "$stat"
else else
# 1-line out - add stats at line tail
echo -n "$out" echo -n "$out"
echo -e "\t$stat" echo -e "\t$stat"
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment