[sane-devel] [PATCH] sane-frontends / xscanimage: New feature: "Time remaining" estimate to progress dialog
stef.dev at free.fr
Tue Sep 23 19:39:58 UTC 2008
Le Saturday 13 September 2008 20:01:21 Jonas Berlin, vous avez écrit :
> 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
> 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
I have applied a slightly modified version of your patch on sane-frontends
More information about the sane-devel