Michael Stapelberg
7ea12e3dff
Merge pull request #237 from kousu/215-battery
...
Be more cautious about handling invalid battery measurements.
2017-10-05 22:53:58 -07:00
Emeric Planet
cb9b55217d
Fix CPU unit tests ( #239 )
...
Support any amount of available cores on testing machine.
2017-10-05 13:18:23 -04:00
Michael Stapelberg
9f5ac89aa4
Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)
2017-09-18 08:30:48 +02:00
Emeric Planet
884e4da673
Fix CPU unit tests ( #239 )
...
Support any amount of available cores on testing machine.
2017-08-29 19:01:30 +02:00
kousu
aefa784882
Repair test case.
...
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.
2017-08-24 19:00:22 -04:00
kousu
62d0905c7f
Be more cautious about handling invalid battery measurements.
2017-08-24 19:00:08 -04:00
Emeric Planet
ca9bee8b88
Use local timezone for battery %emptytime ( #236 )
2017-08-19 14:56:30 +02:00
Ingo Bürk
0e406a1f3b
Merge pull request #219 from flammi/master
...
Add check for virtual ethernet devices
2017-04-16 07:43:30 +02:00
Emeric Planet
c7dea74751
Add battery capacity parsing ( #216 )
...
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
2017-04-13 21:46:21 +02:00
Fabian Franzen
6a19709e65
Added braces
...
Added braces to the if-statement as requested.
2017-04-13 12:51:29 +02:00
Fabian Franzen
ad3fac03c3
Fix memory leak/Use BEGINS_WITH macro
...
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.
2017-04-12 13:11:34 +02:00
Fabian Franzen
f45581f8d8
Add check for virtual ethernet devices
...
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).
2017-04-12 03:46:04 +02:00
eplanet
94651257ce
Multiple CPU support for cpu_usage ( #209 )
...
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.
2017-03-26 06:54:07 -04:00
Ingo Bürk
3ae0decbb3
Merge pull request #211 from ixjlyons/issue210
...
disk: don't remove trailing slash if path is a single character
2017-03-16 14:27:21 +01:00
Kenneth Lyons
8e12ad8308
disk: don't remove trailing slash if path is a single character
2017-03-10 11:24:56 -08:00
Ingo Bürk
09c758eed5
Merge pull request #208 from stapelberg/warning
...
remove useless checks (we use char, not unsigned char)
2017-03-08 22:26:33 +01:00
Ingo Bürk
554db9fcc1
Merge pull request #207 from stapelberg/disk_info
...
disk: sanitize trailing slashes
2017-03-08 22:25:51 +01:00
Michael Stapelberg
eee4ace092
remove useless checks (we use char, not unsigned char)
...
fixes compilation warnings
2017-03-08 19:24:09 +01:00
Michael Stapelberg
27952b11f7
disk: sanitize trailing slashes
...
fixes #200
2017-03-08 19:22:22 +01:00
Ingo Bürk
37e73e77b0
Merge pull request #202 from jasperla/openbsd_fdleak
...
Plug an fd leak in the OpenBSD-specific code for _first_
2017-02-07 20:47:06 +01:00
Ingo Bürk
c1172065a7
Merge pull request #201 from jasperla/openbsd_bat_info
...
Suppress printing :00 seconds of remaining battery lifetime
2017-02-07 20:45:36 +01:00
Jasper Lievisse Adriaanse
3c6d5ac3d7
Plug an fd leak in the OpenBSD-specific code for _first_
2017-02-07 19:29:01 +01:00
Jasper Lievisse Adriaanse
9166765803
Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'s
...
estimate only has a granularity of minutes.
From tb@openbsd.org
2017-02-07 19:25:03 +01:00
Baptiste Daroussin
93576bccc3
Fix the deciKelvin to Celsius conversion on FreeBSD ( #195 )
...
Change from ceiled value to floored value to be consistent with the
FreeBSD kernel
https://svnweb.freebsd.org/base?view=revision&revision=300421
2017-02-01 11:28:01 -08:00
Jasper Lievisse Adriaanse
e09186fa19
Make first_eth_interface() work on OpenBSD: ( #197 )
...
- use a define for loopback interface device
- use an approach similar to ifconfig(8) for determining device type
2017-01-31 23:28:38 -08:00
Jasper Lievisse Adriaanse
897d03ed5e
Include sys/select.h on OpenBSD ( #198 )
...
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
2017-01-31 23:26:13 -08:00
Michael Stapelberg
67ee99f71c
release v2.11
2017-01-21 16:00:15 +01:00
Michael Stapelberg
ef5148c3e9
correctly write I3STATUS_VERSION on release
2017-01-21 16:00:13 +01:00
Michael Stapelberg
30fd21864b
Makefile: sort objects for deterministic linking order
...
Patch by Reiner Herrmann
2017-01-21 15:34:20 +01:00
Michael Stapelberg
8e293f92b0
man: fix spelling errors
2017-01-21 15:32:01 +01:00
Michael Stapelberg
dbc8acb618
man: switch link to directly go to github
2017-01-21 15:15:01 +01:00
Moritz Warning
3f6d71feb9
Consolidate measure speed script ( #188 )
...
* remove old net speed scripts
* add reworked net-speed script
* add space between rate and speed suffix
it is easier to parse visually
* only use intervals greater zero
* add ifaces examples
* catch negativ byte count
happens when the counter resets
2017-01-02 16:06:06 +01:00
Zhong Jianxin
9832a0d93a
Re-license contrib/netspeed to the same as i3status ( #189 )
...
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
2016-12-25 23:00:15 +01:00
Samuel Holland
7a7974d76d
Fix i3status to compile with -fno-common ( #185 )
...
This avoids multiple declarations of the same global variable in
different source files.
2016-12-13 19:32:57 +01:00
eplanet
6f7724ec64
Adding documentation for PR #179 ( #182 )
2016-11-19 06:02:10 -08:00
Michael Stapelberg
b91e2a4b71
Merge pull request #179 from mihaicmn/feature-threshold-format
...
Provide format_above_threshold/format_below_threshold options
2016-11-16 13:45:59 -08:00
Michael Stapelberg
7b63102b9d
Merge pull request #178 from eplanet/ut_cpu_temp
...
Unit testing some new cases
2016-11-15 09:27:44 -08:00
Mihai Coman
562f6e383d
Add unit tests for threshold format
2016-11-15 13:34:06 +02:00
Mihai Coman
9375959b68
Add 'format_below_threshold' option for 'disk' module
...
Add 'format_above_threshold' option for 'cpu_temperature' module
Add 'format_above_threshold' option for 'cpu_usage' module
Add 'format_above_threshold' option for 'load' module
2016-11-15 01:09:05 +02:00
eplanet
9c47240523
Added test case for run_watch
...
The valid test case assumes pid 1 exists, which should always
be true on Unix environment.
2016-11-14 21:33:09 +00:00
eplanet
243d08e1ad
Added unit test case for path_exists
2016-11-14 21:24:16 +00:00
eplanet
7c9108c9b9
Added unit test case for CPU temperature
2016-11-14 20:58:58 +00:00
eplanet
b0af4e4c85
Unit testing in Travis ( #170 )
2016-11-14 00:13:44 -08:00
Jon Bernard
220b9e1565
Use blank padding for wireless quality ( #166 ) ( #167 )
2016-11-12 06:39:41 -08:00
Björn Lindström
be87c5ac38
Setting of custom locale in tztime configuration. ( #168 )
...
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
2016-10-24 08:43:04 +02:00
Stu Zhao
707ceffc8b
Detect batteries using glob ( #163 )
2016-10-23 21:20:31 +02:00
Watcom
8d2ef5f99b
pulse device may be specified by name ( #126 ) ( #162 )
2016-09-14 09:26:45 +02:00
Michael Stapelberg
48e10658b4
Bugfix: re-add single quotes around I3STATUS_VERSION
...
related to https://github.com/i3/i3/issues/2437
2016-09-05 08:35:24 +02:00
Michael Stapelberg
ad8b034e48
Merge pull request #140 from tommie/multibatt
...
Implement aggregates in print_battery_info
2016-08-29 09:45:15 +02:00
Tommie Gannert
dc072f9f53
Implement aggregates for batteries.
...
Using title number all, this enables aggregates. Note that FreeBSD and
OpenBSD previously only reported aggregates, so this is bringing Linux
and NetBSD that functionality.
Changes the default battery reporting to the aggregate since most
users probably don't care about individual batteries. For single-battery
systems there should be no change.
Fixes one obvious memory leak in NetBSD.
2016-08-28 14:29:08 +01:00