scp: rounding bug in displayed transfer rate?

Brolin Empey brolin at brolin.be
Wed Mar 18 16:43:10 EST 2009


Hello,

[brolin at optiplex960] [0] [5] ~/
$ echo hello >hello.txt
...
[brolin at optiplex960] [1] [9] ~/
$ scp -pP 2222 hello.txt k7t266:~/
brolin at k7t266's password:
hello.txt
                                             100%    6     0.0KB/s
00:00
[brolin at optiplex960] [0] [10] ~/
$

Why is the transfer rate "0.0KB/s"?  That means nothing was
transferred.  I think the transfer rate should be displayed in B/s
instead of KB/s if it is less than 0.1 KB/s because copying 6 bytes
but saying "0.0KB/s" is misleading and wrong to me.

Thanks,
Brolin

--
Sometimes I forget how to do small talk: <http://xkcd.com/222/>

"What if there were no hypothetical questions?" — George Carlin


More information about the openssh-unix-dev mailing list