From 067aabab6ed9ac36cb62c73663dc2cbc5a990c11 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 12 Feb 2012 10:14:51 -0600 Subject: [PATCH] * usr/bin/byobu-status: - fix broken status expiration, which wasn't working and probably had a huge performance penalty :-( --- debian/changelog | 4 +++- usr/bin/byobu-status | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 37e70bb6..048492fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ 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 Sun, 12 Feb 2012 10:01:36 -0600 diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index 86f8c6ad..0a1f1f07 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -48,8 +48,8 @@ get_now; NOW=${_RET} get_status() { local cachepath="$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/$1" local lastpath="$BYOBU_RUN_DIR/.last.$BYOBU_BACKEND/$1" - local lastrun - [ -r "$lastpath" ] && read lastrun < "$lastpath" || lastrun=0 + local lastrun=0 + [ -r "$lastpath" ] && read lastrun < "$lastpath" case "$1" in ip_address4) IPV6=0