<feed xmlns='http://www.w3.org/2005/Atom'>
<title>i3status.git/src, branch 2.12</title>
<subtitle>[no description]</subtitle>
<id>http://git.sigexec.com/cgit.cgi/i3status.git/atom?h=2.12</id>
<link rel='self' href='http://git.sigexec.com/cgit.cgi/i3status.git/atom?h=2.12'/>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/'/>
<updated>2018-04-08T13:53:19+00:00</updated>
<entry>
<title>Merge pull request #275 from winks/patch-2</title>
<updated>2018-04-08T13:53:19+00:00</updated>
<author>
<name>Ingo Bürk</name>
<email>admin@airblader.de</email>
</author>
<published>2018-04-08T13:53:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=82d25dc36295bc59cdf37af8e23c644a9c2e6aad'/>
<id>urn:sha1:82d25dc36295bc59cdf37af8e23c644a9c2e6aad</id>
<content type='text'>
Fix NULL value on OpenBSD when there is no acpitz0</content>
</entry>
<entry>
<title>Fix NULL value on OpenBSD when there is no acpitz0</title>
<updated>2018-04-06T17:56:55+00:00</updated>
<author>
<name>Florian Anderiasch</name>
<email>fa@art-core.org</email>
</author>
<published>2018-04-06T17:54:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=46b5c264d177f1e01bd17746071f4b0e1ca42eab'/>
<id>urn:sha1:46b5c264d177f1e01bd17746071f4b0e1ca42eab</id>
<content type='text'>
Using %degrees on OpenBSD resulted in garbage values if sysctl doesn't
know about any cpu temperature sensors.
</content>
</entry>
<entry>
<title>Show IP address when address has a label</title>
<updated>2018-03-29T10:46:36+00:00</updated>
<author>
<name>Dan Robertson</name>
<email>dan.robertson@anidata.org</email>
</author>
<published>2017-03-22T00:39:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=6a75ea9aea3bd7fd75d7c3e235b89586bbda4bdf'/>
<id>urn:sha1:6a75ea9aea3bd7fd75d7c3e235b89586bbda4bdf</id>
<content type='text'>
If an address has been added with a label, ensure the correct address is
shown.
</content>
</entry>
<entry>
<title>Merge branch 'master' into master</title>
<updated>2018-03-27T07:26:55+00:00</updated>
<author>
<name>Ingo Bürk</name>
<email>admin@airblader.de</email>
</author>
<published>2018-03-27T07:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=4345fa9d9715a912c55828565783311e3fab4f0f'/>
<id>urn:sha1:4345fa9d9715a912c55828565783311e3fab4f0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #243 from jasperla/fei_error</title>
<updated>2018-03-27T07:07:53+00:00</updated>
<author>
<name>Ingo Bürk</name>
<email>admin@airblader.de</email>
</author>
<published>2018-03-27T07:07:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=3aec438a5137e04c6e7952d3f9afd237002d1fda'/>
<id>urn:sha1:3aec438a5137e04c6e7952d3f9afd237002d1fda</id>
<content type='text'>
Remove overly aggressive #error</content>
</entry>
<entry>
<title>OpenBSD: fix volume display on some hardware</title>
<updated>2018-02-12T13:12:04+00:00</updated>
<author>
<name>Carlin Bingham</name>
<email>cb@viennan.net</email>
</author>
<published>2018-02-12T13:12:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=5b416d4ac00caf6028416999d3cef3b997d33f3b'/>
<id>urn:sha1:5b416d4ac00caf6028416999d3cef3b997d33f3b</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Make iface_type() work on FreeBSD</title>
<updated>2018-02-07T10:26:34+00:00</updated>
<author>
<name>Gerome Fournier</name>
<email>jef@foutaise.org</email>
</author>
<published>2018-02-07T10:26:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=9212ee658bb977557f65f569336417a74f7c4edc'/>
<id>urn:sha1:9212ee658bb977557f65f569336417a74f7c4edc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Treat zero battery capacity as "not available" (#259)</title>
<updated>2018-01-28T14:37:51+00:00</updated>
<author>
<name>johcgt</name>
<email>35880934+johcgt@users.noreply.github.com</email>
</author>
<published>2018-01-28T14:37:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=d5c69a9d60a0bf9b6fbbaff7e122042410bfe44a'/>
<id>urn:sha1:d5c69a9d60a0bf9b6fbbaff7e122042410bfe44a</id>
<content type='text'>
`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.</content>
</entry>
<entry>
<title>Update comment as in #247 (#254)</title>
<updated>2017-12-11T11:16:00+00:00</updated>
<author>
<name>Emeric Planet</name>
<email>emeric.planet@datadoghq.com</email>
</author>
<published>2017-12-11T11:16:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=657c0498dbc4eed26df8b7af1c87ea943c2bbdf6'/>
<id>urn:sha1:657c0498dbc4eed26df8b7af1c87ea943c2bbdf6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add IPv6 address when IPv4 isn't available (#247)</title>
<updated>2017-12-11T10:38:31+00:00</updated>
<author>
<name>Emeric Planet</name>
<email>emeric.planet@datadoghq.com</email>
</author>
<published>2017-12-11T10:38:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/i3status.git/commit/?id=53fb9b4f18cd9ee3a64be5084ccc76aeea279515'/>
<id>urn:sha1:53fb9b4f18cd9ee3a64be5084ccc76aeea279515</id>
<content type='text'>
</content>
</entry>
</feed>
