Age | Commit message (Collapse) | Author |
|
Previously, the fields in the wireless module were declared but not explicitly
initialized upon declaration. As nothing else would do so afterwards, this
could introduce random characters left over in the memory segment into
the fields. This was explicitly observed in the essid-field, but likely
a possibility for other fields as well. Hence, this commit adds explicit
initialization with zero bytes to all fields to ensure proper
termination of all fields.
Fixes #432
|
|
Closes #421
|
|
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
|
|
* Add support for batteries outputting Time to empty on linux
The battery in the pinebook pro does not output the remaining charge
in Wh or mAh, so i3 cannot calculate the time remaining. However, it
does directly output the number of minutes remaining on in
POWER_SUPPLY_TIME_TO_EMPTY. This adds support for reading this field
and converting it to seconds_remaining.
* Add testcase for POWER_SUPPLY_TIME_TO_EMTY_NOW
|
|
This generates much friendlier names on all my systems, e.g.
"HDMI / DisplayPort 5" rather than
"Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 5)"
|
|
Code copied from i3
Fixes #377
|
|
Fix fall-through warnings
|
|
1) Names incorporating Firmware/BIOS provided index numbers for on-board
devices (example: eno1)
2) Names incorporating Firmware/BIOS provided PCI Express hotplug slot
index numbers (example: ens1)
3) Names incorporating physical/geographical location of the connector
of the hardware (example: enp2s0)
4) Names incorporating the interfaces's MAC address
(example: enx78e7d1ea46da)
5) Classic, unpredictable kernel-native ethX naming
(example: eth0)
I've used usb/eth dongle with name enx..., and need only this one name,
but extend filter to include other ones as well.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
|
|
|
|
Fix various memory leaks
|
|
|
|
Fixes #362
|
|
Resolve tilde
|
|
Travis
|
|
Fixes #350
|
|
|
|
New matrix for 5 jobs in total.
Updates our checks to bionic & xenial. Trusty could also be
included but it is a bit outdated at this point.
I use bionic to pull a more recent clang-format and use a dedicated job
just to check formatting. An alternative would be to conditionally run
the formatting script only on bionic.
I don't think that there is a better way to expand a `dist` x `compiler`
matrix (except using docker).
|
|
- sudo is deprecated
- No explicit os throws warning
|
|
Format placeholder volume
|
|
Fix various warnings
|
|
- unused variable ‘walk’ [-Wunused-variable]
- implicit declaration of built-in function ‘free’
[-Wimplicit-function-declaration]
- initialization discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
- variable 'ram_used' is used uninitialized whenever 'if' condition is
false [-Wsometimes-uninitialized]. This is actually easily reproducible
by specifying `memory_used_method = "XXX"`.
- comparison of integers of different signs: 'int' and 'unsigned long'
[-Wsign-compare] (for `exponent`)
|
|
mend
|
|
Fix rendering wireless bitrate and support bitrate on FreeBSD
|
|
|
|
|
|
* use statvfs f_frsize for file system block size
|
|
format_placeholder percent tests
|
|
use format_placeholder for wireless_info
|
|
|
|
|
|
use format_placeholder for file_content
|
|
|
|
|
|
use format_placeholder for time
|
|
use format_placeholder for run_watch
|
|
use format_placeholder for path_exists
|
|
Update net-speed.sh
|
|
Added the common prefix `enx` as possible string for interface detection. See https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
|
|
|
|
|
|
|
|
|
|
use format_placeholder for mem
|
|
|
|
use format_placeholder for ipv6_addr
|
|
use format_placeholder for load
|
|
|
|
|
|
Small wrapper with the ability to add custom info in any position
|
|
avoid out-of-bounds read after invalid %cpu conversion
|