summaryrefslogtreecommitdiffstats
path: root/tdeutils/tdecmoduleproxy.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-01-08 01:49:53 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-01-08 01:49:53 +0100
commit86c1d896c748bf5117ccfe28b20e48a7e2a70c8d (patch)
tree14e8a8cad1061b62de5f589b57143b83bf0c0601 /tdeutils/tdecmoduleproxy.h
parent3b0f07f2cdf3c5228b6d38b33fb5f2bc8fa0542d (diff)
downloadtdelibs-86c1d896c748bf5117ccfe28b20e48a7e2a70c8d.tar.gz
tdelibs-86c1d896c748bf5117ccfe28b20e48a7e2a70c8d.zip
tdehwlib: Adjusted parsing of battery information
+ Added initialization of all values Some batteries do not provide all values and, without initialization, values may contain dubious data. + Added reading of current battery capacity value in percent (capacity) Some batteries may provide the current capacity value in percent instead of the current energy value. + Added check whether the battery provides current energy value (charge_now or energy_now) The current energy is calculated if the value is not provided in the battery information. + Added reading of estimated time to empty battery (time_to_empty_now) The remaining time is calculated if the value is not provided in the battery information. If the battery does not provide charging current information, the estimated time to charge the battery cannot be calculated. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeutils/tdecmoduleproxy.h')
0 files changed, 0 insertions, 0 deletions