Bug 53962

Summary: KProgress - percentage incorrect when using large range
Product: [Frameworks and Libraries] kdelibs Reporter: Mike K. Bennett <mkb137>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mike K. Bennett 2003-02-03 05:20:38 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.1 
OS:          Linux

The KProgress widget reports the wrong percentage on a large range, although the drawn progress bar is correct.  For instance, when used to display the progress of a file transfer, 25955140 of 52871001 bytes had been transferred.  The filled progress bar correctly takes up about half of the progress bar length.  The numerical display, however, reads "-32%".  It seemed to switch to -35% or so at around 25% done.  The negative percentage gradually counted up to 0 and then finished (when it should have read 100%) at about 20% or so.

The progress bar seems accurate enough when used for smaller maximum values.
Comment 1 Caleb Tennis 2003-02-09 03:35:17 UTC
Fixed in CVS.