D25018: Move ACPI battery information from /proc/acpi to /sys
Arjen Hiemstra
noreply at phabricator.kde.org
Mon Nov 4 14:10:12 GMT 2019
ahiemstra requested changes to this revision.
ahiemstra added a comment.
This revision now requires changes to proceed.
Hmm, I would like to see some smarter sys file handling for this. Right now, multiple calls to getSysFileValue result in the same file being read from disk over and over. While the original implementation may not have been ideal either, the update function at least made sure the ACPI stuff got only read once per update. If you need some inspiration, Memory.c has a fairly decent implementation.
REPOSITORY
R106 KSysguard
REVISION DETAIL
https://phabricator.kde.org/D25018
To: jjorge, davidedmundson, #plasma, ahiemstra
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191104/f1a98c85/attachment-0001.html>
More information about the Plasma-devel
mailing list