1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-28 01:28:30 +00:00

Fix for the issue I made (#860)

This commit is contained in:
屑鉄さらい;Scrap Trawler 2019-07-01 02:14:01 -04:00 committed by Brenden Matthews
parent f105a8777a
commit 3b752693bd
2 changed files with 6 additions and 1 deletions

View File

@ -294,11 +294,13 @@ void update_stuff() {
/* if you registered a callback with conky::register_cb, this will run it */
conky::run_all_callbacks();
#if !defined(__linux__)
/* XXX: move the following into the update_meminfo() functions? */
if (no_buffers.get(*state)) {
info.mem -= info.bufmem;
info.memeasyfree += info.bufmem;
}
#endif
}
/* Ohkie to return negative values for temperatures */

View File

@ -227,7 +227,10 @@ int update_meminfo(void) {
full or non-present, OOM happens. Therefore this is the value users want to
monitor, regarding their RAM.
*/
if (no_buffers.get(*state)) {
info.mem -= info.bufmem;
info.memeasyfree += info.bufmem;
}
fclose(meminfo_fp);
return 0;
}