2012-05-11 19:46:53 |
Vladimir Kravets |
description |
Byobu uses caching mechanics using .new file and if it's exists and file size not zero we get data from cached. Code for this r is locates in the /usr/bin/byobu-status, function get_status(). The network script return nothing if we have traffic less than NETWORK_BANDWITH. In this case file size will be 0 and we will have incorrect(old) values of network traffic in the byobu status.
Need to have non-zero file size if we don't have any data or change caching mechanism (I thin first will be less painful =) ) |
Byobu uses caching mechanism to using .new files and if it's exists and file size not zero we get data from cached. Code for this is locate in the /usr/bin/byobu-status, function get_status(). The network script return nothing if we have traffic less than NETWORK_BANDWITH. In this case file size will be 0 and we will have incorrect(old) values of network traffic in the byobu status.
Need to have non-zero file size if we don't have any data or change caching mechanism (I think first will be less painful =) ) |
|