Fixes 0MB ram usage

This commit is contained in:
Guaxinim5573 2021-04-04 18:48:04 -03:00
parent ebd6b609e7
commit cf137e4155

View file

@ -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