* usr/lib/byobu/disk_io:

- support super fast next generation SSD hard drives
This commit is contained in:
Dustin Kirkland 2011-05-23 06:51:39 -05:00
commit 752ade87a9
2 changed files with 5 additions and 0 deletions

2
debian/changelog vendored
View file

@ -14,6 +14,8 @@ byobu (4.2) unreleased; urgency=low
mode for Byobu mode for Byobu
* usr/share/man/man1/byobu-quiet.1, usr/share/man/man1/byobu-silent.1: * usr/share/man/man1/byobu-quiet.1, usr/share/man/man1/byobu-silent.1:
- add a manpage for byobu-silent.1, and update byobu-silent.1 - add a manpage for byobu-silent.1, and update byobu-silent.1
* usr/lib/byobu/disk_io:
- support super fast next generation SSD hard drives
[ Scott Moser ] [ Scott Moser ]
* usr/bin/byobu, usr/bin/byobu-reconnect-sockets, * usr/bin/byobu, usr/bin/byobu-reconnect-sockets,

View file

@ -76,6 +76,9 @@ for i in "read" "write"; do
rate=$((($x2-$x1) / ($t2 - $t1) * 512 / 1024)) rate=$((($x2-$x1) / ($t2 - $t1) * 512 / 1024))
if [ "$rate" -lt 0 ]; then if [ "$rate" -lt 0 ]; then
rate=0 rate=0
elif [ "$rate" -gt 1048576 ]; then
fpdiv "$rate" 1048576 1
unit="GB/s"
elif [ "$rate" -gt 1024 ]; then elif [ "$rate" -gt 1024 ]; then
fpdiv "$rate" 1024 1 fpdiv "$rate" 1024 1
unit="MB/s" unit="MB/s"