summaryrefslogtreecommitdiff
path: root/components
Commit message (Collapse)AuthorAgeFilesLines
* wifi: Change memmove to memcpy on OpenBSDAaron Marcher2018-05-171-1/+1
|
* Unify type of in for loopsAaron Marcher2018-05-171-1/+2
|
* wifi_essid: Fix coding styleAaron Marcher2018-05-171-2/+2
| | | | Only initialize variables at the beginning of a block
* Unify type of `i` in for loopsAaron Marcher2018-05-172-4/+3
| | | | | int for normal indexes size_t for usage with the LEN macro
* corrected calculations for disk space on openbsdTobias Tschinkowitz2018-05-171-4/+4
|
* wifi: Fix coding styleAaron Marcher2018-05-161-7/+10
| | | | | | Use block for single statement ifs When functions return -1 for error test against 0 not -1 Newlines
* load_ieee80211_nodereq: Fix typoAaron Marcher2018-05-161-1/+1
|
* wifi: Move out common headersAaron Marcher2018-05-161-20/+12
|
* added wifi functionality for openbsdTobias Tschinkowitz2018-05-161-1/+75
| | | | display ESSID and signal strength percentage
* corrected calculation for swap on openbsdTobias Tschinkowitz2018-05-161-7/+5
| | | | | | 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.
* consistent calculation of ram_* on openbsdTobias Tschinkowitz2018-05-161-4/+4
|
* updated ram_total and ram_free (obsd)Tobias Tschinkowitz2018-05-161-4/+4
|
* Cast CPU percentage to int and fix indenationAaron Marcher2018-05-141-11/+11
|
* include <sys/time.h> before <sys/sensors.h> for time struct timevalJosuah Demangeon2018-05-081-1/+1
| | | | | | | | | | sys/sensors.h has two structs struct timeval: sensor and ksensor: struct sensor { ... struct timeval tv; /* sensor value last change time */ ... };
* Fix indents (spaces for alignment)Aaron Marcher2018-05-071-1/+1
|
* wifi_perc: SimplifyAaron Marcher2018-05-071-4/+1
|
* num_files: Variable declarations at top of blockAaron Marcher2018-05-071-1/+2
|
* Fix disk_perc by casting it to intAaron Marcher2018-05-071-2/+2
|
* disk_perc: SimplifyAaron Marcher2018-05-071-4/+2
|
* cpu: Simplify functionsAaron Marcher2018-05-071-16/+14
|
* Unify header includesAaron Marcher2018-05-076-11/+11
| | | | | - Sort Alphabetically - Same indentation for preprocessor clauses
* entropy: Small fixAaron Marcher2018-05-061-1/+2
|
* entropy: Port to OpenBSDAaron Marcher2018-05-061-1/+5
| | | | OpenBSD's entropy design is superior to Linux.
* datetime: Add <stdio.h> for fprintfAaron Marcher2018-05-061-0/+1
|
* datetime: Add error messageAaron Marcher2018-05-061-0/+1
|
* Fix coding styleAaron Marcher2018-05-0614-65/+89
| | | | | | | | | - Use block for single statement ifs - Keep lines to reasonable length (current debate as to reasonable) - When functions return -1 for error test against 0 not -1 - Do not indent cases another level - Do not test against NULL and 0 explicitly - Use tabs for indentation, use spaces for alignment
* Remove cpu_iowaitAaron Marcher2018-05-061-25/+0
| | | | | | The third value from load_avg (idle) gives us almost the same information as cpu_iowait. Plus OpenBSD does not offer an iowait value as Linux and thus the corresponding function would not be portable.
* cpu_perc: Documentation and readbility improvementsAaron Marcher2018-05-061-9/+9
|
* cpu_perc: Port to OpenBSDAaron Marcher2018-05-061-0/+35
| | | | | In OpenBSD the CPU usage in percent is now computed using KERN_CPTIME sysctl.
* swap_*: Port to OpenBSDAaron Marcher2018-05-061-6/+84
|
* battery: Remove full indicatorAaron Marcher2018-05-041-1/+0
| | | | | It does not respect charging thresholds and it is not trivial to implement the indicator in OpenBSD.
* wifi_perc: Fix file descriptor leakAaron Marcher2018-05-021-2/+3
|
* uptime: Add missing braceAaron Marcher2018-05-021-1/+1
|
* volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.parazyd2018-05-021-1/+1
|
* wifi: Various cleanupsAaron Marcher2018-05-021-9/+6
|
* user: Only declare variables in the beginningAaron Marcher2018-05-021-2/+2
|
* uptime: Simplifiy and clean upAaron Marcher2018-05-021-20/+19
|
* run_command: Clean upAaron Marcher2018-05-021-2/+1
|
* keyboard_indicators: Clean up opening displayAaron Marcher2018-05-021-2/+2
|
* ip: Sort headers alphabeticallyAaron Marcher2018-05-021-5/+4
|
* battery_state: Unify unknown state with "?" symbolAaron Marcher2018-05-021-2/+0
|
* Remove battery_power for various reasonsAaron Marcher2018-05-011-12/+0
| | | | | - Battery power cannot be easily gatherable via apm(4) - IMHO it does not represent essential information
* battery_perc: Port to OpenBSDAaron Marcher2018-05-011-0/+37
|
* components/swap.c | move duplicated code to separate functionLaslo Hunhold2018-05-011-56/+26
|
* Use indentation to increase readabilityLaslo Hunhold2018-05-018-538/+572
| | | | | | | | | | | Granted, this style is definitely not common, but for the short utility-functions of this program it's just the right choice. This provides great flexibility, such that in the long run, it will be possible to also share code between the OS-implementations. This also keeps the state-keeping at a minimum and makes it clearer which functions are implemented on which OS without having to jiggle around with too many files in the process.
* Revert component-splitLaslo Hunhold2018-05-0117-233/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this reverts the commits from 92ab9ef52ebcb097add97d9f78e67ad1c1d6a6ec up to d42870d6ca7fb587b38f8cf6d6821ae33a53a696. After heavy consideration, the component split has more disadvantages than advantages, especially given there will be utility-functions sharing quite a lot of code that would then need to be duplicated, as it does not fit into the util.c due to its speciality. One big advantage of the component-wise build is readability, and without doubt, this was achieved here. This point will be addressed with a different approach that will be visible in the upcoming commits. One big disadvantage of the component build is the fact that it introduces state to the build process which is not necessary. Before its introduction, the only influencing factors where the system-defines __linux__ and __OpenBSD__. With the components, we are also relying on the output of uname(1). Additionally, if the os.mk is not present, make gives the output $ make Makefile:5: os.mk: No such file or directory make: *** No rule to make target 'os.mk'. Stop. This could easily be fixed by providing some sort of meta-rule for this file, however, it indicates the problem we have here, and this entire statefulness will heavily complicate packaging of this tool and makes the build process much more complex than it actually has to be.
* wifi: OS splitQuentin Rameau2018-04-302-3/+1
|
* uptime: OS splitQuentin Rameau2018-04-302-24/+25
|
* temperature: OS splitQuentin Rameau2018-04-302-14/+16
|
* swap: OS splitQuentin Rameau2018-04-302-3/+1
|