[sane-devel] [PATCH] sane-frontends / xscanimage: New feature: "Time remaining" estimate to progress dialog

Jonas Berlin xkr47 at outerspace.dyndns.org
Sat Sep 13 18:01:21 UTC 2008


Hi!

I implemented a small feature to the progress dialog of xscanimage that adds a "Time remaining: 5 min 13 sec" indicator below the progress bar.

I did this because with my scanner it takes 1 hour 40 mins to scan an A4 at 2400 dpi, and even in less extreme cases I think it's nice to know how long it's going to take.

The estimation algorithm is not especially elaborate, but stabilizes quite fast at least with my HP ScanJet 6300C even when the data comes in bursts by limiting the update ratio to once per second (which is determined by the value 1000 (milliseconds) in the code). 

The code applies against sane-frontends-1.0.14 and hopefully meets your standards.

Finally I'd like to thank for an excellent product with all the features I feel I need while scanning and still is very easy to use! And the Sane project in general for meeting the goal that the project acronym sets. :)

My patch is both attached and available at

  http://xkr47.outerspace.dyndns.org/tmp/sane-frontends-1.0.14-progress-eta-3.patch

-- 
- xkr47


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-frontends-1.0.14-progress-eta-3.patch
Type: text/x-patch
Size: 3021 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080913/1786d7a5/attachment.bin 


More information about the sane-devel mailing list