summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-11 16:51:20 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-11 16:51:20 +0000
commitf909aaca4dfa3a36f18c1f58dd07306c2ddfd329 (patch)
treebb2d3a853ea973025d6f46e9ed0073add211583f
parentde5c11648a4111906934cf84f53ece057ef4fd37 (diff)
downloadurpmi-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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 0eec099a..0fb2e491 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;