From f909aaca4dfa3a36f18c1f58dd07306c2ddfd329 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 11 Aug 2003 16:51:20 +0000 Subject: fixed limit_rate with rsync and ssh protocol. --- urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1