| Age | Commit message (Collapse) | Author | 
|---|
|  |  | 
|  |  | 
|  |  | 
|  | OpenBSD: fix volume display on some hardware | 
|  | On some hardware the AUDIO_MIXER_READ ioctl requires the current number
of channels to be set, and the mute device found needs to be checked if
it belongs to the master output device. | 
|  | Add check for interval value | 
|  |  | 
|  | Remove SLOC comment from man page | 
|  | This changed happened for the readme in
73620dc876d7f76b9a6771048c5ad0ade94e5bd7 | 
|  | `print_battery_info` computes `batt_info.percentage_remaining` by
dividing batt_info.remaining by `full`. If `full` is `0` then the
battery remaining will be reported as "inf".
Before this, it tries to set `full` to either the design capacity or to
the last known good charge. It determines if these values are available
by checking whether their fields in `batt_info` are non-negative. As it
initialized `batt_info` with values of `-1`, a non-negative value
implies that something has provided a value.
`slurp_all_batteries` and `add_battery_info` however initialize these
fields to zero, so if these functions are called then
`batt_info.full_design` will always be used.
This means that on systems that don't provide a value for design
capacity the percentage remaining will be reported as "inf", unless the
user has set `last_full_capacity` to `true` in their `i3status.conf`.
This patch changes `print_battery_info` to expect values for the battery
capacity to be strictly greater than zero. This seems reasonable as a
battery with a capacity of zero isn't useful.
An alternative solution would be to change `slurp_all_batteries` and
`add_battery_info` to initialize `batt_info` with `-1`, as
`print_battery_info` does. This is less appealing as `add_battery_info`
is accumulating the values, so using `-1` would introduce off-by-one
errors without additional code to avoid them. | 
|  | Get rid of the SLOC comment | 
|  |  | 
|  |  | 
|  |  | 
|  | Call tzset at each time print | 
|  |  | 
|  | Fixed minor typos | 
|  | "you can chose" -> "you can choose"
"You can either disable the default separator altogether setting it to the empty string." -> " You can also disable the default separator altogether by setting it to the empty string." | 
|  |  | 
|  | Be more cautious about handling invalid battery measurements. | 
|  | Support any amount of available cores on testing machine. | 
|  |  | 
|  | Support any amount of available cores on testing machine. | 
|  | This was introduced in #236. It looks like Travis never ran on that PR?
Anyway it's blocking me submitting this now so I'm fixing it. | 
|  |  | 
|  |  | 
|  | Add check for virtual ethernet devices | 
|  | The Linux power supply class defines three entries to provide battery status.
One of them wasn't used: POWER_SUPPLY_CAPACITY.
https://www.kernel.org/doc/Documentation/power/power_supply_class.txt | 
|  | Added braces to the if-statement as requested. | 
|  | The orignal proposed code had a memory leak when returning true.
Furthermore I included the handy BEGINS_WITH macro of i3 which makes the
code (IMHO) a lot more readable. | 
|  | The _first_ option for ethernet devices now uses the link in sysfs to determine
if it's a real device or just a virtual one (i.e veth** devices created by docker). | 
|  | This change addresses the issue #199 asking for multiple CPU support. It
takes an arbitrary CPU number and outputs its usage using the same
arithmetics as for CPU aggregation. It currently doesn't support
FreeBSD. | 
|  | disk: don't remove trailing slash if path is a single character | 
|  |  | 
|  | remove useless checks (we use char, not unsigned char) | 
|  | disk: sanitize trailing slashes | 
|  | fixes compilation warnings | 
|  | fixes #200 | 
|  | Plug an fd leak in the OpenBSD-specific code for _first_ | 
|  | Suppress printing :00 seconds of remaining battery lifetime | 
|  |  | 
|  | estimate only has a granularity of minutes.
From tb@openbsd.org | 
|  | Change from ceiled value to floored value to be consistent with the
FreeBSD kernel
https://svnweb.freebsd.org/base?view=revision&revision=300421 | 
|  | - use a define for loopback interface device
- use an approach similar to ifconfig(8) for determining device type | 
|  | Fixes a compilation error:
/usr/include/net80211/ieee80211_ioctl.h:339: warning: implicit declaration of function 'howmany'
/usr/include/net80211/ieee80211_ioctl.h:339: error: 'NBBY' undeclared here (not in a function)
/usr/include/net80211/ieee80211_ioctl.h:339: error: variably modified 'nr_rxmcs' at file scope | 
|  |  | 
|  |  | 
|  | Patch by Reiner Herrmann | 
|  |  | 
|  |  |