Skip to content

Commit

Permalink
Removed no_buffers check completely from common.cc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
屑鉄さらい;Scrap Trawler authored and brndnmtthws committed Aug 12, 2019
1 parent 3b75269 commit c6b9d2e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c6b9d2e

Please sign in to comment.