summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-17Change done to int as it is the CPU's natural typeAaron Marcher
2018-05-17Change interval to unsigned intAaron Marcher
2018-05-17Add comments for battery_* functions on OpenBSDAaron Marcher
2018-05-17added comment for temp function (openbsd)Tobias Tschinkowitz
2018-05-17corrected calculations for disk space on openbsdTobias Tschinkowitz
2018-05-16Update READMEAaron Marcher
2018-05-16wifi: Fix coding styleAaron Marcher
Use block for single statement ifs When functions return -1 for error test against 0 not -1 Newlines
2018-05-16load_ieee80211_nodereq: Fix typoAaron Marcher
2018-05-16wifi: Move out common headersAaron Marcher
2018-05-16added wifi functionality for openbsdTobias Tschinkowitz
display ESSID and signal strength percentage
2018-05-16corrected calculation for swap on openbsdTobias 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-16consistent calculation of ram_* on openbsdTobias Tschinkowitz
2018-05-16Add he4d to LICENSEAaron Marcher
2018-05-16updated ram_total and ram_free (obsd)Tobias Tschinkowitz
2018-05-14Cast CPU percentage to int and fix indenationAaron Marcher
2018-05-08fflush(stdout) to print line by line if stdout is not a ttyJosuah Demangeon
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
2018-05-08Add josuah to LICENSEAaron Marcher
2018-05-08include <sys/time.h> before <sys/sensors.h> for time struct timevalJosuah Demangeon
sys/sensors.h has two structs struct timeval: sensor and ksensor: struct sensor { ... struct timeval tv; /* sensor value last change time */ ... };
2018-05-07Only variable declarations at top of blockAaron Marcher
2018-05-07Fix indents (spaces for alignment)Aaron Marcher
2018-05-07wifi_perc: SimplifyAaron Marcher
2018-05-07num_files: Variable declarations at top of blockAaron Marcher
2018-05-07Fix disk_perc by casting it to intAaron Marcher
2018-05-07disk_perc: SimplifyAaron Marcher
2018-05-07cpu: Simplify functionsAaron Marcher
2018-05-07Unify header includesAaron Marcher
- Sort Alphabetically - Same indentation for preprocessor clauses
2018-05-06entropy: Small fixAaron Marcher
2018-05-06entropy: Port to OpenBSDAaron Marcher
OpenBSD's entropy design is superior to Linux.
2018-05-06datetime: Add <stdio.h> for fprintfAaron Marcher
2018-05-06datetime: Add error messageAaron Marcher
2018-05-06Fix coding styleAaron Marcher
- 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
2018-05-06Remove cpu_iowaitAaron Marcher
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.
2018-05-06cpu_perc: Documentation and readbility improvementsAaron Marcher
2018-05-06cpu_perc: Port to OpenBSDAaron Marcher
In OpenBSD the CPU usage in percent is now computed using KERN_CPTIME sysctl.
2018-05-06swap_*: Port to OpenBSDAaron Marcher
2018-05-04battery: Remove full indicatorAaron Marcher
It does not respect charging thresholds and it is not trivial to implement the indicator in OpenBSD.
2018-05-02wifi_perc: Fix file descriptor leakAaron Marcher
2018-05-02Add examples to config.def.hAaron Marcher
2018-05-02uptime: Add missing braceAaron Marcher
2018-05-02volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.parazyd
2018-05-02wifi: Various cleanupsAaron Marcher
2018-05-02user: Only declare variables in the beginningAaron Marcher
2018-05-02uptime: Simplifiy and clean upAaron Marcher
2018-05-02run_command: Clean upAaron Marcher
2018-05-02keyboard_indicators: Clean up opening displayAaron Marcher
2018-05-02ip: Sort headers alphabeticallyAaron Marcher
2018-05-02battery_state: Unify unknown state with "?" symbolAaron Marcher
2018-05-01Update README todoAaron Marcher
2018-05-01Remove battery_power for various reasonsAaron Marcher
- Battery power cannot be easily gatherable via apm(4) - IMHO it does not represent essential information
2018-05-01Tweak build system a little bitLaslo Hunhold
Be consistent with brackets and add a comment for OpenBSD to make it clearer what the actual intent of the uncommented line is. In the Makefile, add a dependency of slstatus.o from config.mk.