* 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:
Dustin Kirkland 2012-06-24 16:13:46 -05:00
commit b9d88945e2
4 changed files with 15 additions and 3 deletions

6
debian/changelog vendored
View file

@ -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

View file

@ -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
}

View file

@ -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
}

View file

@ -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
}