mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/disk_io, usr/lib/byobu/mail, usr/lib/byobu/network:
- LP: #962730 - clear out cache on a few other status notifications where we go from activity, to none
This commit is contained in:
parent
e327386c51
commit
b9d88945e2
4 changed files with 15 additions and 3 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -38,6 +38,12 @@ byobu (5.20) unreleased; urgency=low
|
|||
* usr/share/man/man1/byobu.1: LP: #977225
|
||||
- add documentation about the status line background colors
|
||||
|
||||
[ Dustin Kirkland and Daniel Lee ]
|
||||
* usr/lib/byobu/disk_io, usr/lib/byobu/mail, usr/lib/byobu/network:
|
||||
- LP: #962730
|
||||
- clear out cache on a few other status notifications where we go
|
||||
from activity, to none
|
||||
|
||||
[ https://launchpad.net/~ktyubuntu ]
|
||||
* usr/lib/byobu/logo: LP: #1004712
|
||||
- fix Red Hat logo detection
|
||||
|
|
|
@ -90,9 +90,11 @@ __disk_io() {
|
|||
unit="kB/s"
|
||||
fi
|
||||
fi
|
||||
[ -z "$rate" ] && continue
|
||||
[ "$rate" = "0" ] && continue
|
||||
color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color --
|
||||
if [ -z "$rate" ] || [ "$rate" = "0" ]; then
|
||||
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/disk_io"*
|
||||
else
|
||||
color b M W; printf "%s%s" "$symbol" "$rate"; color -; color M W; printf "%s" "$unit"; color --
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ __mail_detail() {
|
|||
__mail() {
|
||||
if [ -s "$MAILFILE" ]; then
|
||||
color b; printf "%s" "$ICON_MAIL"; color --
|
||||
else
|
||||
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/mail"*
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -89,6 +89,8 @@ __network() {
|
|||
esac
|
||||
[ -n "$rate" ] || continue
|
||||
color b m w; printf "%s%s" "$symbol" "$rate"; color -; color m w; printf "%s" "$unit"; color --
|
||||
else
|
||||
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/network"*
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue