From 6c66db7463a625be1a0b9e3586a100105e5f95ae Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Tue, 2 Dec 2014 23:38:25 +0100 Subject: Fix download percentage --- lib/AdminPanel/Rpmdragora/pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/AdminPanel/Rpmdragora/pkg.pm') diff --git a/lib/AdminPanel/Rpmdragora/pkg.pm b/lib/AdminPanel/Rpmdragora/pkg.pm index afa8832..0e8bce9 100644 --- a/lib/AdminPanel/Rpmdragora/pkg.pm +++ b/lib/AdminPanel/Rpmdragora/pkg.pm @@ -223,7 +223,7 @@ sub download_callback { ), ); #$gurpm->progress($percenti/100); - $gurpm->progress(ceil($percent*100)); + $gurpm->progress(ceil($percent)); } elsif ($mode eq 'end') { $gurpm->progress(100); $gurpm->invalidate_cancel; -- cgit v1.2.1