Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unify type of `i` in for loops | Aaron Marcher | 2018-05-17 | 2 | -4/+3 |
| | | | | | int for normal indexes size_t for usage with the LEN macro | ||||
* | Change done to int as it is the CPU's natural type | Aaron Marcher | 2018-05-17 | 1 | -1/+1 |
| | |||||
* | Change interval to unsigned int | Aaron Marcher | 2018-05-17 | 1 | -1/+1 |
| | |||||
* | Add comments for battery_* functions on OpenBSD | Aaron Marcher | 2018-05-17 | 1 | -0/+2 |
| | |||||
* | added comment for temp function (openbsd) | Tobias Tschinkowitz | 2018-05-17 | 1 | -0/+1 |
| | |||||
* | corrected calculations for disk space on openbsd | Tobias Tschinkowitz | 2018-05-17 | 1 | -4/+4 |
| | |||||
* | Update README | Aaron Marcher | 2018-05-16 | 1 | -4/+1 |
| | |||||
* | wifi: Fix coding style | Aaron Marcher | 2018-05-16 | 1 | -7/+10 |
| | | | | | | Use block for single statement ifs When functions return -1 for error test against 0 not -1 Newlines | ||||
* | load_ieee80211_nodereq: Fix typo | Aaron Marcher | 2018-05-16 | 1 | -1/+1 |
| | |||||
* | wifi: Move out common headers | Aaron Marcher | 2018-05-16 | 1 | -20/+12 |
| | |||||
* | added wifi functionality for openbsd | Tobias Tschinkowitz | 2018-05-16 | 1 | -1/+75 |
| | | | | display ESSID and signal strength percentage | ||||
* | corrected calculation for swap on openbsd | Tobias Tschinkowitz | 2018-05-16 | 1 | -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 openbsd | Tobias Tschinkowitz | 2018-05-16 | 1 | -4/+4 |
| | |||||
* | Add he4d to LICENSE | Aaron Marcher | 2018-05-16 | 1 | -0/+1 |
| | |||||
* | updated ram_total and ram_free (obsd) | Tobias Tschinkowitz | 2018-05-16 | 1 | -4/+4 |
| | |||||
* | Cast CPU percentage to int and fix indenation | Aaron Marcher | 2018-05-14 | 1 | -11/+11 |
| | |||||
* | fflush(stdout) to print line by line if stdout is not a tty | Josuah Demangeon | 2018-05-08 | 1 | -0/+1 |
| | | | | | | | | | | To reproduce the issue: $ slstatus -s | tee then it would print only when the stdout buffer is full, by block of multiple lines. fflush() makes sure the line is printed at every loop iteration | ||||
* | Add josuah to LICENSE | Aaron Marcher | 2018-05-08 | 1 | -0/+1 |
| | |||||
* | include <sys/time.h> before <sys/sensors.h> for time struct timeval | Josuah Demangeon | 2018-05-08 | 1 | -1/+1 |
| | | | | | | | | | | sys/sensors.h has two structs struct timeval: sensor and ksensor: struct sensor { ... struct timeval tv; /* sensor value last change time */ ... }; | ||||
* | Only variable declarations at top of block | Aaron Marcher | 2018-05-07 | 1 | -1/+2 |
| | |||||
* | Fix indents (spaces for alignment) | Aaron Marcher | 2018-05-07 | 1 | -1/+1 |
| | |||||
* | wifi_perc: Simplify | Aaron Marcher | 2018-05-07 | 1 | -4/+1 |
| | |||||
* | num_files: Variable declarations at top of block | Aaron Marcher | 2018-05-07 | 1 | -1/+2 |
| | |||||
* | Fix disk_perc by casting it to int | Aaron Marcher | 2018-05-07 | 1 | -2/+2 |
| | |||||
* | disk_perc: Simplify | Aaron Marcher | 2018-05-07 | 1 | -4/+2 |
| | |||||
* | cpu: Simplify functions | Aaron Marcher | 2018-05-07 | 1 | -16/+14 |
| | |||||
* | Unify header includes | Aaron Marcher | 2018-05-07 | 6 | -11/+11 |
| | | | | | - Sort Alphabetically - Same indentation for preprocessor clauses | ||||
* | entropy: Small fix | Aaron Marcher | 2018-05-06 | 1 | -1/+2 |
| | |||||
* | entropy: Port to OpenBSD | Aaron Marcher | 2018-05-06 | 2 | -2/+5 |
| | | | | OpenBSD's entropy design is superior to Linux. | ||||
* | datetime: Add <stdio.h> for fprintf | Aaron Marcher | 2018-05-06 | 1 | -0/+1 |
| | |||||
* | datetime: Add error message | Aaron Marcher | 2018-05-06 | 1 | -0/+1 |
| | |||||
* | Fix coding style | Aaron Marcher | 2018-05-06 | 15 | -66/+91 |
| | | | | | | | | | - 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_iowait | Aaron Marcher | 2018-05-06 | 4 | -29/+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 improvements | Aaron Marcher | 2018-05-06 | 1 | -9/+9 |
| | |||||
* | cpu_perc: Port to OpenBSD | Aaron Marcher | 2018-05-06 | 2 | -1/+36 |
| | | | | | In OpenBSD the CPU usage in percent is now computed using KERN_CPTIME sysctl. | ||||
* | swap_*: Port to OpenBSD | Aaron Marcher | 2018-05-06 | 2 | -7/+84 |
| | |||||
* | battery: Remove full indicator | Aaron Marcher | 2018-05-04 | 1 | -1/+0 |
| | | | | | It does not respect charging thresholds and it is not trivial to implement the indicator in OpenBSD. | ||||
* | wifi_perc: Fix file descriptor leak | Aaron Marcher | 2018-05-02 | 1 | -2/+3 |
| | |||||
* | Add examples to config.def.h | Aaron Marcher | 2018-05-02 | 1 | -14/+17 |
| | |||||
* | uptime: Add missing brace | Aaron Marcher | 2018-05-02 | 1 | -1/+1 |
| | |||||
* | volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning. | parazyd | 2018-05-02 | 1 | -1/+1 |
| | |||||
* | wifi: Various cleanups | Aaron Marcher | 2018-05-02 | 1 | -9/+6 |
| | |||||
* | user: Only declare variables in the beginning | Aaron Marcher | 2018-05-02 | 1 | -2/+2 |
| | |||||
* | uptime: Simplifiy and clean up | Aaron Marcher | 2018-05-02 | 1 | -20/+19 |
| | |||||
* | run_command: Clean up | Aaron Marcher | 2018-05-02 | 1 | -2/+1 |
| | |||||
* | keyboard_indicators: Clean up opening display | Aaron Marcher | 2018-05-02 | 1 | -2/+2 |
| | |||||
* | ip: Sort headers alphabetically | Aaron Marcher | 2018-05-02 | 1 | -5/+4 |
| | |||||
* | battery_state: Unify unknown state with "?" symbol | Aaron Marcher | 2018-05-02 | 1 | -2/+0 |
| | |||||
* | Update README todo | Aaron Marcher | 2018-05-01 | 1 | -1/+0 |
| | |||||
* | Remove battery_power for various reasons | Aaron Marcher | 2018-05-01 | 4 | -15/+1 |
| | | | | | - Battery power cannot be easily gatherable via apm(4) - IMHO it does not represent essential information |