Rate guessing code

Danny Kukawka danny.kukawka at web.de
Wed Nov 9 11:45:46 PST 2005


On Wednesday 09 November 2005 19:08, you wrote:
> First, thanks for this, when this gets in HAL, I can make at least two
> people very happy :-)
>
> Not a big issue for me, by why can't battery.remaining_time.guess be
> read in util_compute_time_remaining, or cached there? Seems overkill to
> add a new parameter to the function.

I don't think so. If you want to do this whitout a new parameter, you must 
read this key from the device and for this you must know which device ... and 
a new parameter. I think a new parameter for this issue is a clean solution.

> Also is "battery.remaining_time.guess" the best keyname? What about:
[...]
> battery.remaining_time.calculate_per_time

Sounds good, I whould change this before commit. Okay for commit?

Cheers,

Danny


More information about the hal mailing list