* usr/bin/byobu-status:

- fix broken status expiration, which wasn't working and probably
    had a huge performance penalty :-(
This commit is contained in:
Dustin Kirkland 2012-02-12 10:14:51 -06:00
commit 067aabab6e
2 changed files with 5 additions and 3 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.9) unreleased; urgency=low byobu (5.9) unreleased; urgency=low
* UNRELEASED * usr/bin/byobu-status:
- fix broken status expiration, which wasn't working and probably
had a huge performance penalty :-(
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 12 Feb 2012 10:01:36 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Sun, 12 Feb 2012 10:01:36 -0600

View file

@ -48,8 +48,8 @@ get_now; NOW=${_RET}
get_status() { get_status() {
local cachepath="$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/$1" local cachepath="$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/$1"
local lastpath="$BYOBU_RUN_DIR/.last.$BYOBU_BACKEND/$1" local lastpath="$BYOBU_RUN_DIR/.last.$BYOBU_BACKEND/$1"
local lastrun local lastrun=0
[ -r "$lastpath" ] && read lastrun < "$lastpath" || lastrun=0 [ -r "$lastpath" ] && read lastrun < "$lastpath"
case "$1" in case "$1" in
ip_address4) ip_address4)
IPV6=0 IPV6=0