Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-12-11 | Add IPv6 address when IPv4 isn't available (#247) | Emeric Planet | 3 | -23/+106 | |
2017-12-09 | Call tzset at each time print | eplanet | 1 | -1/+1 | |
2017-09-04 | Remove overly aggressive #error | Jasper Lievisse Adriaanse | 1 | -4/+1 | |
Change-Id: I8c20606d386d713cac51b620d1fcdb479a3622fe | |||||
2017-08-24 | Be more cautious about handling invalid battery measurements. | kousu | 1 | -7/+26 | |
2017-08-19 | Use local timezone for battery %emptytime (#236) | Emeric Planet | 1 | -0/+1 | |
2017-04-16 | Merge pull request #219 from flammi/master | Ingo Bürk | 1 | -0/+19 | |
Add check for virtual ethernet devices | |||||
2017-04-13 | Add battery capacity parsing (#216) | Emeric Planet | 1 | -0/+4 | |
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 | Added braces | Fabian Franzen | 1 | -1/+2 | |
Added braces to the if-statement as requested. | |||||
2017-04-12 | Fix memory leak/Use BEGINS_WITH macro | Fabian Franzen | 1 | -5/+5 | |
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 | Add check for virtual ethernet devices | Fabian Franzen | 1 | -0/+18 | |
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-03-26 | Multiple CPU support for cpu_usage (#209) | eplanet | 1 | -23/+78 | |
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-10 | disk: don't remove trailing slash if path is a single character | Kenneth Lyons | 1 | -1/+1 | |
2017-03-08 | Merge pull request #208 from stapelberg/warning | Ingo Bürk | 1 | -4/+3 | |
remove useless checks (we use char, not unsigned char) | |||||
2017-03-08 | remove useless checks (we use char, not unsigned char) | Michael Stapelberg | 1 | -4/+3 | |
fixes compilation warnings | |||||
2017-03-08 | disk: sanitize trailing slashes | Michael Stapelberg | 1 | -1/+5 | |
fixes #200 | |||||
2017-02-07 | Merge pull request #202 from jasperla/openbsd_fdleak | Ingo Bürk | 1 | -5/+8 | |
Plug an fd leak in the OpenBSD-specific code for _first_ | |||||
2017-02-07 | Plug an fd leak in the OpenBSD-specific code for _first_ | Jasper Lievisse Adriaanse | 1 | -5/+8 | |
2017-02-07 | Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'s | Jasper Lievisse Adriaanse | 1 | -1/+1 | |
estimate only has a granularity of minutes. From tb@openbsd.org | |||||
2017-02-01 | Fix the deciKelvin to Celsius conversion on FreeBSD (#195) | Baptiste Daroussin | 1 | -1/+1 | |
Change from ceiled value to floored value to be consistent with the FreeBSD kernel https://svnweb.freebsd.org/base?view=revision&revision=300421 | |||||
2017-01-31 | Make first_eth_interface() work on OpenBSD: (#197) | Jasper Lievisse Adriaanse | 1 | -1/+63 | |
- use a define for loopback interface device - use an approach similar to ifconfig(8) for determining device type | |||||
2017-01-31 | Include sys/select.h on OpenBSD (#198) | Jasper Lievisse Adriaanse | 1 | -0/+1 | |
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 | |||||
2016-11-15 | Add 'format_below_threshold' option for 'disk' module | Mihai Coman | 4 | -223/+229 | |
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-12 | Use blank padding for wireless quality (#166) (#167) | Jon Bernard | 1 | -3/+3 | |
2016-10-24 | Setting of custom locale in tztime configuration. (#168) | Björn Lindström | 1 | -1/+10 | |
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-23 | Detect batteries using glob (#163) | Stu Zhao | 1 | -31/+30 | |
2016-09-14 | pulse device may be specified by name (#126) (#162) | Watcom | 2 | -26/+57 | |
2016-08-28 | Implement aggregates for batteries. | Tommie Gannert | 1 | -31/+184 | |
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-22 | Match trailing equal sign in slurp_battery_info. | Tommie Gannert | 1 | -9/+9 | |
Should make it more resilient to future ambiguities in uevent. | |||||
2016-08-22 | Parse uevent file to detect network device type (#153) | Cihangir Akturk | 1 | -6/+51 | |
Currently i3status differentiates wireless and wired devices based on the existence of wireless directory inside the device's sysfs directory. This approach seems to cause 3g modems to be incorrectly identified as the first ethernet device. This commit solves this problem by using DEVTYPE variable from uevent file. Signed-off-by: Cihangir Akturk <cakturk@gmail.com> | |||||
2016-08-22 | print_wireless_info: fix FTBFS on hurd and kfreebsd | Michael Stapelberg | 1 | -0/+4 | |
Patch by Axel Beckert. | |||||
2016-08-21 | Added missing ampere to watt conversion for last full capacity. (#158) | tnnn | 1 | -0/+2 | |
Signed-off-by: Tomasz Nitecki <tnnn@tnnn.pl> | |||||
2016-08-16 | Print empty string for not mounted disks. (#148) | eplanet | 1 | -4/+6 | |
An empty string becomes the default value for format_not_mounted parameter for any disk entry. This avoids printing erroneous values when a filesystem is not mounted. | |||||
2016-08-14 | Move time and ratio computations out of slurp_battery_info. (#151) | tommie | 1 | -50/+33 | |
This allows OSes that support reporting multiple batteries to simply sum into full_design,full_last,remaining and let print_battery_info make computations. | |||||
2016-08-14 | Move full_design and full_last into struct battery_info. | Tommie Gannert | 1 | -44/+34 | |
This is in preparation for moving the ratio computation code out of slurp_battery_info to support aggregating multiple batteries. | |||||
2016-08-14 | Also capture charge rate in NetBSD. | Tommie Gannert | 1 | -0/+3 | |
For time estimates when charging. | |||||
2016-08-14 | Fix warnings about using a char array index on NetBSD. | Tommie Gannert | 1 | -8/+8 | |
The isspace macro is just a table lookup. | |||||
2016-08-14 | Simplify string comparisons in slurp_battery_info for NetBSD. | Tommie Gannert | 1 | -47/+11 | |
Doing strlen(a) == strlen(b) && strncmp(a, b, N) seems to have no benefits compared to just strcmp(a, b). The NetBSD cstring properties come from the kernel, not the user. The test for units did a prefix match, but that looked like a bug, the unit is "Watt hour" in my Virtual box. | |||||
2016-08-14 | Make print_disk_info, print_eth_info and print_wireless_info compile on ↵ | Tommie Gannert | 3 | -1/+13 | |
NetBSD without warnings. | |||||
2016-08-14 | Remove warnings about unused variables in slurp_battery_info on OpenBSD. | Tommie Gannert | 1 | -5/+9 | |
2016-08-14 | Define IW_ESSID_MAX_SIZE for OpenBSD. | Tommie Gannert | 1 | -1/+2 | |
Also fixes a signedness warning. | |||||
2016-08-03 | Move OS-specific code to slurp_battery_info. | Tommie Gannert | 1 | -63/+72 | |
2016-08-03 | Introduce a struct battery_info to carry information from data retrieval to ↵ | Tommie Gannert | 1 | -50/+59 | |
the output formatter. | |||||
2016-08-03 | Refactor common seconds_remaining code in print_battery_info. | Tommie Gannert | 1 | -19/+16 | |
2016-08-03 | Remove an END_COLOR in print_battery_info for OpenBSD. | Tommie Gannert | 1 | -3/+0 | |
This was probably a bug since it makes no sense to have here. | |||||
2016-08-03 | Move START_COLOR to after OS-specific code. | Tommie Gannert | 1 | -61/+10 | |
This uses the more direct tests of whether percentage_remaining and seconds_remaining are available or not (rather than looking at present_rate). | |||||
2016-08-03 | Remove consumptionbuf from print_battery_info. | Tommie Gannert | 1 | -10/+3 | |
2016-08-03 | Remove emptytimebuf from print_battery_info. | Tommie Gannert | 1 | -30/+11 | |
This changes the behavior for NetBSD: previously this time was not shown while charging. On Linux it was treated as "full time". This change makes all OSes behave the same. OpenBSD and FreeBSD did not support emptytime previously. | |||||
2016-08-03 | Remove remainingbuf from print_battery_info. | Tommie Gannert | 1 | -53/+28 | |
2016-08-01 | Remove percentagebuf from print_battery_info. | Tommie Gannert | 1 | -30/+15 | |
2016-08-01 | Remove statusbuf from print_battery_info. | Tommie Gannert | 1 | -14/+17 | |