b26b118d76
This patch fixes a bug in which multiple (conflicting) CPU temps may be included in the output for the "cpu temperature" module. The bug is due to the way that the code parsed the envsys(4)-returned data, and would manifest itself on x86-based NetBSD machines, since those use cputemp(4) as well as acpitz(4), thereby creating multiple envsys(4) entries with identical descriptions but which refer to different physical sensors. Instead of matching the description attribute of each device returned by envsys(4) against the target format, this patch throws away non-matching keys in the first instruction inside the dict walk. This has the benefit of sparing unnecessary CPU cycles, and preventing other sensors from being included erroneously. Additionally, the THERMAL_ZONE format is now joined with OpenBSD in that it uses acpitz(4) explicitly. This is prefered since it is much older (dating back to NetBSD 2.0), and does not exclude x86-based users (as with cputemp(4)). |
||
---|---|---|
contrib | ||
include | ||
man | ||
src | ||
yajl-fallback/yajl | ||
.gitignore | ||
CHANGELOG | ||
i3status.c | ||
i3status.conf | ||
LICENSE | ||
Makefile | ||
README |
┌────────────────────────────┐ │ Description │ └────────────────────────────┘ i3status is a small program (about 1500 SLOC) for generating a status bar for i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient by issuing a very small number of system calls, as one generally wants to update such a status line every second. This ensures that even under high load, your status bar is updated correctly. Also, it saves a bit of energy by not hogging your CPU as much as spawning the corresponding amount of shell commands would. ┌────────────────────────────┐ │ Development │ └────────────────────────────┘ i3status has the following dependencies: • libconfuse-dev • libyajl-dev • libasound2-dev • libiw-dev • libcap2-bin (for getting network status without root permissions) • asciidoc (only for the documentation) On debian-based systems, the following line will install all requirements: apt-get install libconfuse-dev libyajl-dev libasound2-dev libiw-dev asciidoc libcap2-bin ┌────────────────────────────┐ │ Upstream │ └────────────────────────────┘ i3status is developed at http://code.i3wm.org/i3status You may clone the git-repository using git clone git://code.i3wm.org/i3status Please submit patches at http://cr.i3wm.org/ ┌────────────────────────────┐ │ Compilation │ └────────────────────────────┘ Compiling is done with the usual make-line make && sudo make install