mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Removed no_buffers check completely from common.cc
There's not a single instance of using info.bufmem in any other source file aside from linux.cc. If there was any plan to use this check (and info.bufmem) with any other source file, the check should be made in that specific source file instead.
This commit is contained in:
parent
3b752693bd
commit
c6b9d2edb5
@ -293,14 +293,6 @@ 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 */
|
||||
|
Loading…
Reference in New Issue
Block a user