Fixes 0MB ram usage
This commit is contained in:
parent
ebd6b609e7
commit
cf137e4155
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ void get_info() { // get all necessary info
|
||||||
|
|
||||||
FILE *meminfo;
|
FILE *meminfo;
|
||||||
|
|
||||||
meminfo = popen("free 2> /dev/null", "r");
|
meminfo = popen("LANG=EN_us free 2> /dev/null", "r");
|
||||||
while (fgets(line, sizeof(line), meminfo)) {
|
while (fgets(line, sizeof(line), meminfo)) {
|
||||||
// free command prints like this: "Mem:" total used free shared buff/cache available
|
// free command prints like this: "Mem:" total used free shared buff/cache available
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue