mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-status:
- fix broken status expiration, which wasn't working and probably had a huge performance penalty :-(
This commit is contained in:
parent
63328af16f
commit
067aabab6e
2 changed files with 5 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -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 <kirkland@ubuntu.com> Sun, 12 Feb 2012 10:01:36 -0600
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue