~ubuntu-branches/debian/wheezy/byobu/wheezy

« back to all changes in this revision

Viewing changes to usr/lib/byobu/memory

  • Committer: Package Import Robot
  • Author(s): Alexander Chernyakhovsky
  • Date: 2012-01-11 19:37:34 UTC
  • mfrom: (0.5.3) (0.1.162 precise)
  • Revision ID: package-import@ubuntu.com-20120111193734-89083z97py39gj05
Tags: 5.2-1
* Syncing from Ubuntu. Remaining changes:
  - Switch to dh short syntax
  - Added a substvar ${perl:Depends} dependency into debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        if [ $total -ge 1048576 ]; then
46
46
                fpdiv "$total" 1048567 1
47
47
                total=${_RET}
48
 
                unit="GB"
 
48
                unit="$ICON_GB"
49
49
        elif [ $total -ge 1024 ]; then
50
50
                fpdiv "$total" 1024 0
51
51
                total=${_RET}
52
 
                unit="MB"
 
52
                unit="$ICON_MB"
53
53
        else
54
 
                unit="KB"
 
54
                unit="$ICON_KB"
55
55
        fi
56
 
        color b g W; printf "%s" "$total"; color -; color g W; printf "%s," "$unit"; color -; color b g W; printf "%s" "$f"; color -; color g W; printf "%s" "$PCT"; color --
 
56
        color b g W; printf "%s" "$total"; color -; color g W; printf "%s" "$unit"; color -; color b g W; printf "%s" "$f"; color -; color g W; printf "%s" "$PCT"; color --
57
57
}
58
58
 
59
59
# vi: syntax=sh ts=4 noexpandtab