Comment 46 for bug 194719

Revision history for this message
In , Lukas Hejtmanek (xhejtman) wrote :

there is a typo in hal-0.5.10/hald/linux/device.c

line 3181:

/* CURRENT: we prefer the average if it exists, although present is still pretty good */
        if (!hal_util_get_int_from_file (path, "current_avg", &current, 10)) {

should be:

/* CURRENT: we prefer the average if it exists, although present is still pretty good */
        if (hal_util_get_int_from_file (path, "current_avg", &current, 10)) {

(i.e., negate the condition otherwise rate is not ever updated.)