dkorth added a comment.
The original version I wrote a few months back as a quick fix to reduce CPU usage. I do agree that the magic numbers shouldn't be hard-coded, since that's not easily maintained, though I'm not sure of the best approach. constexpr strlen() seems like it'd work, or alternatively, splitting the line on spaces. I'll look into rewriting it to be more robust and submit an update. REPOSITORY R106 KSysguard REVISION DETAIL https://phabricator.kde.org/D29808 To: dkorth, ahiemstra Cc: sandsmark, ahiemstra, jpalecek, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart