Correctly parse system load on locales with "," as decimal point

On my RPi with German locale the output of `uptime` looks like this:

` 12:56:38 up 4 days, 15:35,  3 users,  load average: 0,24, 0,24, 0,16`

Default implementation cuts off the decimal point during parsing, resulting in very low CPU load accuracy being reported.

Fix is a single character. Corrected version works both on German and English locales.
This commit is contained in:
Olex S
2021-04-20 12:58:28 +02:00
committed by GitHub
parent b9ebfb1375
commit 73beb0231f