diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-11 16:51:20 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-11 16:51:20 +0000 |
commit | f909aaca4dfa3a36f18c1f58dd07306c2ddfd329 (patch) | |
tree | bb2d3a853ea973025d6f46e9ed0073add211583f | |
parent | de5c11648a4111906934cf84f53ece057ef4fd37 (diff) | |
download | urpmi-f909aaca4dfa3a36f18c1f58dd07306c2ddfd329.tar urpmi-f909aaca4dfa3a36f18c1f58dd07306c2ddfd329.tar.gz urpmi-f909aaca4dfa3a36f18c1f58dd07306c2ddfd329.tar.bz2 urpmi-f909aaca4dfa3a36f18c1f58dd07306c2ddfd329.tar.xz urpmi-f909aaca4dfa3a36f18c1f58dd07306c2ddfd329.zip |
fixed limit_rate with rsync and ssh protocol.
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -347,7 +347,7 @@ sub sync_ssh { my $options = shift @_; my $limit_rate = ref($options) && $options->{limit_rate}; for ($limit_rate) { - /^(\d+)$/ and $limit_rate = $1/1024; + /^(\d+)$/ and $limit_rate = int $1/1024; /^(\d+)[kK]$/ and $limit_rate = $1; /^(\d+)[mM]$/ and $limit_rate = 1024*$1; /^(\d+)[gG]$/ and $limit_rate = 1024*1024*$1; |