summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-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;