Merge pull request #62 from Guaxinim5573/main

Fixes 0MB ram. Fixes #61
This commit is contained in:
TheDarkBug 2021-04-04 23:55:39 +02:00 committed by GitHub
commit 7a9018f664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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