nearly forgot to close pipe in status line
This commit is contained in:
parent
ac2594dc0f
commit
a2d4fe7219
@ -57,6 +57,7 @@ ram_usage(void)
|
||||
double total = info.totalram / 1000000000.;
|
||||
|
||||
snprintf(buf, sizeof(buf), "%.2f G/ %.1f G", used, total);
|
||||
pclose(res);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user