summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2018-04-14Add OpenBSD RAM statsDarron Anderson
2018-03-28Format error messages properlyAaron Marcher
Make use of strerror(errno) and format all errors equally: function ['parameters']: error message
2018-03-28Get rid of err.h as it is not portableAaron Marcher
Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
2018-03-21More robust preprocessor switchesAaron Marcher
Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not.
2018-03-20uptime: Port to OpenBSD.Aaron Marcher
In OpenBSD uptime gets fetched using sysctl now.
2018-03-19battery_perc: Port to OpenBSD.Aaron Marcher
In OpenBSD battery percentage gets fetched using apm now.
2018-03-18Build Linux-only functions only on LinuxAaron Marcher
2018-01-06Fix a bug in wifi_essid().Aaron Marcher
When an invalid interface name is passed to wifi_essid() it does not close opened sockets.
2017-10-24Return actual percentage for wifi_perc()parazyd
Implement basic percentage calculation for wifi_perc. With this commit, the function returns correct percentage, since the max of what /proc/net/wireless returns is 70.
2017-09-24Move components into dedicated subdirectoryLaslo Hunhold
This brings us a lot more tidiness.