From 9176797a41f4acb22259ffa0b7e58d49b1bceac3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Nov 1999 19:48:21 +0000 Subject: no_comment --- perl-install/commands.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/commands.pm') diff --git a/perl-install/commands.pm b/perl-install/commands.pm index c6f68c37a..a739452b0 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -290,9 +290,7 @@ sub dd { ref $h{if} eq 'GLOB' ? *IF = $h{if} : sysopen(IF, $h{if}, 0 ) || die "error: can't open file $h{if}\n"; ref $h{of} eq 'GLOB' ? *OF = $h{of} : sysopen(OF, $h{of}, 0x41) || die "error: can't open file $h{of}\n"; - $h{bs} =~ /(\d+)k$/ and $h{bs} = $1 * 1024; - $h{bs} =~ /(\d+)M$/ and $h{bs} = $1 * 1024 * 1024; - $h{bs} =~ /(\d+)G$/ and $h{bs} = $1 * 1024 * 1024 * 1024; + $h{bs} = removeXiBSuffix($h{bs}); for ($nb = 0; !$h{count} || $nb < $h{count}; $nb++) { printf "\r%02.1d%%", 100 * $nb / $h{count} if $h{count} && $percent; -- cgit v1.2.1