Cache system for notifications not working properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
High
|
Unassigned |
Bug Description
I was trying to figure out two issues:
* notifications were freezing quite often with tmux
* byobu-tmux eats up a lot more CPU than byobu-screen
It turns out that the cache is not working properly, thus leading every notification to be triggered at each refresh. I'm not sure why this is causing the freeze, but it looks like the cause of the second issue.
To see the problem:
cat /dev/shm/
In my case, all the files have a content of "0".
The issue comes from the 'get_now' function in usr/lib/
See:
bash -x /usr/bin/
Related branches
- Dustin Kirkland : Pending requested
-
Diff: 149 lines (+55/-24)4 files modifiedusr/lib/byobu/.shutil (+1/-3)
usr/lib/byobu/battery (+25/-20)
usr/share/byobu/profiles/tmux (+2/-0)
usr/share/byobu/status/statusrc (+27/-1)
Hi zorun,
I think these issues are fix-released. I merged your proposed branch related to this bug. $SECONDS is no longer used anywhere in the byobu code base. And I'm not able to reproduce the get_now returning 0 problem anymore.
Can you give the latest release a try and reopen this bug with more details if it's still an issue? Thanks for the report!
Dustin