Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-20 | Support energy_now/power_now in battery_remaining | David Demelier | |
On some laptops (mostly thinkpads), the remaining time may be expressed in µWh using energy_now and power_now files rather than µAh for charge_now and current_now. Add pick function to conditionally select appropriate one. | |||
2018-05-20 | ip: fixed memory leak | Tobias Tschinkowitz | |
free the interface list before returning from the function | |||
2018-05-20 | Check return value of pclose() | Laslo Hunhold | |
2018-05-20 | Refactor ram.c | Aaron Marcher | |
2018-05-20 | Make temp more readable on Linux | Aaron Marcher | |
2018-05-20 | Refactor entropy.c | Laslo Hunhold | |
2018-05-20 | Remove initialization to 0 for static vars | Aaron Marcher | |
2018-05-20 | Remove unnecessary "valid" variable in cpu_perc | Aaron Marcher | |
2018-05-20 | Add unit to temperature | Aaron Marcher | |
2018-05-19 | Implement scaling for cpu_freq | Aaron Marcher | |
2018-05-19 | Implement fmt_human_2() and fmt_human_10() | Laslo Hunhold | |
These functions take the raw number and a unit and automatically print it out "scaled down" to a proper SI-prefix, for powers of 2 and 10 respectively. Apply them to the 2-power cases and keep the 10-power for a later commit. | |||
2018-05-19 | Add the percent sign to *_perc functions | Aaron Marcher | |
Units should be added to the corresponding numbers | |||
2018-05-19 | Increase precision in netspeeds.c | Laslo Hunhold | |
First dividing by interval before multiplying with 1000 decreases the precision by +-(interval - 1) * 1000, as interval arithmetic always applies the Gauß-function to the result. This is not necessary and simply reordering the operations mitigates this. | |||
2018-05-19 | Implement esnprintf() and make formatted calls more efficient | Laslo Hunhold | |
Within the components, snprintf() was unchecked and had inefficient calls in some places. We implement esnprintf() that does all the dirty laundry for us and use it exclusively now. | |||
2018-05-19 | Simplify ipv* functions | Aaron Marcher | |
2018-05-19 | Use `int` for flags | Aaron Marcher | |
2018-05-19 | Revert aac29e2 as it is nonsense | Aaron Marcher | |
2018-05-19 | Set {r,t}xbytes 0 before incrementing them on OBSD | Aaron Marcher | |
2018-05-19 | Missing assignment for last commit | Aaron Marcher | |
2018-05-19 | Unify and simplify netspeed logic and types | Aaron Marcher | |
2018-05-19 | netspeeds: added error condition for openbsd | Tobias Tschinkowitz | |
implemented additional error condition for openbsd netstat in case the interface could not be found in the interface list or if_data is not readable. | |||
2018-05-19 | uptime: Format function is static | Aaron Marcher | |
2018-05-19 | battery: Move out struct as common code | Aaron Marcher | |
2018-05-19 | implemented openbsd netspeed functions | Tobias Tschinkowitz | |
implemented the netspeed functionality for openbsd. furthermore the static keyword was removed of the interval variable in config.def.h for usage as extern variable. | |||
2018-05-19 | Add network speed functions | Aaron Marcher | |
2018-05-18 | Implement fmt_scaled for ram_* functions | Aaron Marcher | |
2018-05-18 | Fix ram_free for Linux | Aaron Marcher | |
2018-05-18 | Implement fmt_scaled for swap_* functions | Aaron Marcher | |
2018-05-18 | Implement fmt_scaled for disk_* functions | Aaron Marcher | |
2018-05-18 | Use %d instead of accidentally %i | Aaron Marcher | |
2018-05-18 | Port battery_remaining to Linux | Aaron Marcher | |
Additionally unify the format of battery_state and uptime | |||
2018-05-18 | Fix memory leak | Aaron Marcher | |
2018-05-18 | battery: fixed remaining time on connected AC | Tobias Tschinkowitz | |
when an AC is connected apm_info shows a non-valid value for remaining minutes. it was decided that in that case the function should return an empty string. | |||
2018-05-18 | Fix indentation | Aaron Marcher | |
Tabs for indentation, spaces for alignment | |||
2018-05-18 | Add battery_remaining function on OpenBSD | Tobias Tschinkowitz | |
Implementation of a battery_remaining function which returns the remaining battery time in HH:MM format. Linux function still needs implementation. Move common code to load_apm_power_info | |||
2018-05-18 | Add warn() and die() | Laslo Hunhold | |
Given slstatus is a tool that runs in the background, most likely run from .xinitrc, it's important to prepend the name of the tool to error messages so it becomes clear where the error is coming from. To make this much more consistent, this commit adds warn() and die() utility functions consistent with other suckless projects and adapts all calls to fprintf(stderr, *) to the warn() and die() functions, greatly increasing the readability of the code. | |||
2018-05-17 | Remove UNUSED macro | Aaron Marcher | |
Use variables named unused instead which is simpler | |||
2018-05-17 | Mark unused parameters, fix compiler warnings | Aaron Marcher | |
2018-05-17 | wifi: Fix order and add missing header | Aaron Marcher | |
<sys/select.h> is needed before <net80211/ieee80211_ioctl.h> on OpenBSD to define NBBY and shut up compiler warnings. | |||
2018-05-17 | wifi: Change memmove to memcpy on OpenBSD | Aaron Marcher | |
2018-05-17 | Unify type of in for loops | Aaron Marcher | |
2018-05-17 | wifi_essid: Fix coding style | Aaron Marcher | |
Only initialize variables at the beginning of a block | |||
2018-05-17 | Unify type of `i` in for loops | Aaron Marcher | |
int for normal indexes size_t for usage with the LEN macro | |||
2018-05-17 | corrected calculations for disk space on openbsd | Tobias Tschinkowitz | |
2018-05-16 | wifi: Fix coding style | Aaron Marcher | |
Use block for single statement ifs When functions return -1 for error test against 0 not -1 Newlines | |||
2018-05-16 | load_ieee80211_nodereq: Fix typo | Aaron Marcher | |
2018-05-16 | wifi: Move out common headers | Aaron Marcher | |
2018-05-16 | added wifi functionality for openbsd | Tobias Tschinkowitz | |
display ESSID and signal strength percentage | |||
2018-05-16 | corrected calculation for swap on openbsd | Tobias Tschinkowitz | |
The swapctl(2) function fills the swapent struct with 512KB blocks. As we want to display in GB, i just modified the calculation for this to get the expected output. | |||
2018-05-16 | consistent calculation of ram_* on openbsd | Tobias Tschinkowitz | |