[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#17596: This is still in 2.1 final. ( progress indicator jumps to 100%v while  copying the last f
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2001-03-09 11:45:30
[Download RAW message or body]

Hi!

This bug is still in KDE 2.1 final:
If you copy a directory dir/, containing n files dir/1,...,dir/n, the
progress' percent and totalSize behave oddliy from the beginning of the
copying of the last file until the end of the whole copy job: The
totalSize jumps from the real totalSize down to progressedSize and keeps
in sync with it until the job is done. Consequently, the percent bar
stays at 100% while the last file is copied.

I just did some more expriments and also had a little look at the kio
code.

This happens not only with DefaultProgress, but also with the
Listprogress of the UIServer. This means that the bug sits in
KIO::xxxJob. But that code is over my head. I can only speculate that
CopyJob emits a wrong totalSize (which equals
size(dir/1)+...+size(dir/n-1) ) at the beginning of the last file's copy
and that the "safety" check in slotProcessedSize() then leads to the the
fact that totalSize increases in sync with progressedSize.

The rest is up to the wizards... Hope this helps a bit.

Marc

-- 
Marc Mutz <Marc@Mutz.com>     http://EncryptionHOWTO.sourceforge.net/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic