Add information about swap space being used

Bug #677259 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Wishlist
Unassigned
byobu (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

According to /usr/lib/byobu/mem_used I have created a mem_used_swap script, which gets the percentage of used swap via:

f=$(free | awk '/Swap:/ { if($2) printf "%.0f", $3 ? 100*$2/$3 : 0; else print "-" }')
printf "$(color g w),$(color b g W)%s$(color -)$(color g W)%%$(color -)" "$f"

This needs some hack(?) like the one used in mem_available (so it works with the other memory status):
  . "$HOME/.$PKG/status"
  [ "$mem_used" = "1" ] && comma="," || whitespace=" "

Please consider adopting it for the next release.

Also, please tell me how to rescan the list of status snippets, so that they would show up in the toggle list used with byobu-config?

Related branches

Changed in byobu:
status: New → In Progress
Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu (Ubuntu):
status: New → Fix Committed
Changed in byobu:
importance: Undecided → Wishlist
Changed in byobu (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 3.10-0ubuntu1

---------------
byobu (3.10-0ubuntu1) natty; urgency=low

  * usr/lib/byobu/custom: fix typo in for loop, LP: #673728, thanks for
    the triage Jorge E. Gómez
  * usr/bin/byobu-janitor: make sure this runs to completion, LP: #676605
  * usr/lib/byobu/cpu_freq: scale bogomips by number of processors, if
    using bogomips to estimate frequency, LP: #675442
  * etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/Makefile.am,
    usr/lib/byobu/swap, usr/share/byobu/profiles/common,
    usr/share/man/man1/byobu.1: add a swap memory usage notification,
    LP: #677259
  * usr/lib/byobu/release: fix the ubuntu devel release printing
 -- Dustin Kirkland <email address hidden> Fri, 12 Nov 2010 22:45:25 -0600

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.