-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] loadvg_linux is wrong #1206
Comments
Is the parsing of floats/doubles dependant on locales (whether , or . as seperator)? |
It seems to be. If i run with |
That was awful |
this is after dropping the sysinfo call.
|
This means that every scanf(%f) is buggy |
Would it be safe to set LC_NUMERIC=C somewhere in the beginning? |
mmh seems to parse string correctly when not using fastfetch |
Removing https://github.com/fastfetch-cli/fastfetch/blob/dev/src/common/init.c#L57 seems to work. |
Hi,
Looking through the loadavg code and in
loadavg_linux.c
fastfetch seems to read/proc/uptime
instead of/proc/loadavg
.Also even if changing to
/proc/loadavg
(and removing the sysinfo code) the format stringsscanf
statement seems wrong:The text was updated successfully, but these errors were encountered: