mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* usr/lib/byobu/disk_io:
- support super fast next generation SSD hard drives
This commit is contained in:
parent
8a07e88810
commit
752ade87a9
2 changed files with 5 additions and 0 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -14,6 +14,8 @@ byobu (4.2) unreleased; urgency=low
|
|||
mode for Byobu
|
||||
* 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
|
||||
* usr/lib/byobu/disk_io:
|
||||
- support super fast next generation SSD hard drives
|
||||
|
||||
[ Scott Moser ]
|
||||
* usr/bin/byobu, usr/bin/byobu-reconnect-sockets,
|
||||
|
|
|
@ -76,6 +76,9 @@ for i in "read" "write"; do
|
|||
rate=$((($x2-$x1) / ($t2 - $t1) * 512 / 1024))
|
||||
if [ "$rate" -lt 0 ]; then
|
||||
rate=0
|
||||
elif [ "$rate" -gt 1048576 ]; then
|
||||
fpdiv "$rate" 1048576 1
|
||||
unit="GB/s"
|
||||
elif [ "$rate" -gt 1024 ]; then
|
||||
fpdiv "$rate" 1024 1
|
||||
unit="MB/s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue