[PATCH] Do not show fractional numbers for duration in transfer dialog

Aurélien Gâteau aurelien.gateau at free.fr
Mon Jun 30 23:54:32 BST 2008

Hello list, second patch for this evening

I got annoyed by the transfer dialog pretending to be so precise as to 
predict transfer time with a precision of a hundredth of second (see [1])

Attached patch removes fractional parts after the minutes and seconds. 
There is a problem because the code does not use i18ncp, showing "1 
minutes remaining". But at least it should not harm too much for seconds 
("1 seconds remaining" is not likely to stay visible for too long...)

I could also rework the code a bit more deeper and display durations as 
"1 minute 23 seconds", but this would of course break string freeze.


[1]: ttp://img183.imageshack.us/img183/4439/preciseprogressdialogxp2.png

More information about the kde-core-devel mailing list