summaryrefslogtreecommitdiffstats
path: root/linux/SystemdMeter.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Use PATH lookup for systemctl in systemd meterScott Olson2021-07-151-9/+9
| | | | | | Before this change, the systemd meter was broken on distros like NixOS, which have systemctl in PATH, but not at /bin/systemctl. After the change, it works on all my NixOS machines.
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-1/+1
|
* cleaned up includes with iwyumayurdahibhate2021-05-101-0/+1
|
* Use RichString_appendnAscii where possibleChristian Göttsche2021-04-261-8/+13
| | | | | | | | | | `RichString_appendnAscii()` avoids a `strlen(3)` call over ` RichString_appendAscii()`. Use the former where the length is available from a previous checked `snprintf(3)` call. Keep `RichString_appendAscii()` when passing a string literal and rely on compilers to optimize the `strlen(3)` call away.
* Add read-only optionChristian Göttsche2021-04-141-0/+3
| | | | | Add command line option to disable all system and process changing features.
* Save text buffer in MeterChristian Göttsche2021-03-041-2/+2
|
* Use String_eq wrapper instead of raw strcmpChristian Göttsche2021-01-301-1/+1
|
* Add configure option to create static htop binaryChristian Göttsche2021-01-251-3/+41
|
* Add wrapper function for free and strdupChristian Göttsche2021-01-111-2/+1
| | | | Reduces code in callers and helps avoiding memory leaks.
* Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche2020-12-081-10/+10
| | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
* Use size_t as len type for Meter_UpdateValuesChristian Göttsche2020-12-061-1/+1
| | | | Most of the time the parameter is passed to snprintf type functions
* Convert personal copyright authorship to teamChristian Göttsche2020-12-041-1/+1
|
* IWYU update (Linux)Christian Göttsche2020-11-191-2/+6
|
* Silence theoretical memory leakChristian Göttsche2020-11-171-1/+3
| | | | In practice systemctl should never return multiple SystemState= lines.
* Add SystemdMeterChristian Göttsche2020-10-311-0/+329

© 2014-2024 Faster IT GmbH | imprint | privacy policy