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:
parent
f105a8777a
commit
3b752693bd
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user