diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-11 13:38:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-11 13:38:42 +0000 |
commit | 2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7 (patch) | |
tree | b570e5945f97436bf32ff81081d8f2c160761a45 | |
parent | 8392e38a3bee90810fe7db0c5ac3e36509c62f59 (diff) | |
download | rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.gz rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.bz2 rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.xz rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.zip |
(do_search) flush X11 queue only every 10 packages while searching
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -101,8 +101,10 @@ sub do_search($$$$$$$) { my $update_search_pb = sub { $progresscount++; - $progresscount <= $total_size and $searchprogress->set_fraction($progresscount/$total_size); - $searchw->flush; # refresh and handle clicks + if ($progresscount % 10) { + $progresscount <= $total_size and $searchprogress->set_fraction($progresscount/$total_size); + $searchw->flush ; # refresh and handle clicks + } }; foreach my $medium (grep { !$_->{ignore} } @{$urpm->{media}}) { $searchstop and last; |