Typo in memory status script

Bug #1059307 reported by Adam Porter on 2012-09-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dustin Kirkland 

Bug Description

fo_cached=$(($kb_main_free + $buffers_plus_cached))

should be

fo_cached=$(($free + $buffers_plus_cached))

BTW, I changed it to only report the amount of free memory. It seems more useful that way. And I added this to colorize the background red if there's less than 10% free:

if [[ $f -lt 10 ]]; then
color b $bgcolor w; printf "%s" "$total"; color -; color b $bgcolor K; printf "%s" "$unit"; color --;

Changed in byobu:
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Wishlist
Dustin Kirkland  (kirkland) wrote :

Committed revision 1982.

Changed in byobu:
status: New → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers