Skip to content
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

Unable to get memory infos when other lang than Englisch #87

Open
Bender1983 opened this issue Sep 21, 2023 · 0 comments
Open

Unable to get memory infos when other lang than Englisch #87

Bender1983 opened this issue Sep 21, 2023 · 0 comments

Comments

@Bender1983
Copy link

Hi

I just wanna let you know, when the language other than English is set by example de_CH or whaterever. The memory infos are not get. Its arround Line 321. An easy & very dirty fix could be, to set the language in the os_cmd a few lines before. Of course there are many other better ways to do it.
$os_mem=os_cmd("LANGUAGE=en && free -b");
}
($os->{mem_total},$os->{mem_used},$os->{mem_free},$os->{mem_shared},$os->{mem_buffers},$os->{mem_cached})=($os_mem =~ /Mem:\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)/);
($os->{swap_total},$os->{swap_used},$os->{swap_free})=($os_mem =~ /Swap:\s+([0-9]+)\s+([0-9]+)\s+([0-9]+)/);

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant