Commit graph

1994 commits

Author SHA1 Message Date
Clement Tsang
8d078f8d71
deps: bump clap, rustix, serde_json (#1210) 2023-06-17 01:48:59 -04:00
Clement Tsang
c73bc2cdb4
docs: bump mkdocs-material to 9.1.16 (#1209) 2023-06-17 00:08:23 -04:00
Clement Tsang
e1d6168641
docs: add .rpm install instructions to the README (#1208) 2023-06-16 01:53:35 -04:00
Clement Tsang
9ad72bf365
ci: use cargo-action v0.0.4 (#1207)
* ci: use cargo-action v0.0.4

* comments/labels
2023-06-15 02:05:47 -04:00
Clement Tsang
6c7635038d
ci: add RPM package generation (#1206)
* ci: add RPM package generation

* edit container

* fix install
2023-06-15 00:26:54 -04:00
Clement Tsang
2e5d59f84d
other: clean up some cfg usage (#1205)
* other: convert some cfg if

* fix
2023-06-13 01:25:20 -04:00
Clement Tsang
24234263f0
docs: fix Arch Linux package link (#1204) 2023-06-12 18:29:48 -04:00
Clement Tsang
531e26ea45
other: post-0.9.2 cleanup (#1203)
* other: some cleanup

* other: add conditional logging macros

* more cleanup

* use compile-time feature for some text in clap
2023-06-12 01:01:07 -04:00
Clement Tsang
cfdfd2bd3f
bump dependencies and Cargo.lock as of 2023-06-10 (#1200)
Did `cargo update`. Only root dep change is bumping `clap`.
2023-06-12 00:13:29 -04:00
Clement Tsang
93b6a5649f
uptick: 0.9.2 (#1202) 2023-06-11 18:22:42 -04:00
Clement Tsang
9560722318
feature: on Linux, check coretemp and don't fail fast with name generation when gathering temps (#1188)
* feature: also check coretemp on Linux when gathering temps

* update changelog

* add comment

* add logic to check thermal zone if there are no hwmon entries

* cleanup

* handle duplicates between hwmon and thermal zone

* Revert "handle duplicates between hwmon and thermal zone"

This reverts commit 402606cc62f27ba196ef2ade6a669ae84aedf0e0.

* cleanup

* back to running thermal zone if no hwmon

* prevent failure cases

* temp logging

* name refactoring

* port dupe name logic to hwmon

* Cleanup, add fallback to sensor name

* more tests

* Fix log

* update changelog

* cleanup and more tests
2023-06-11 18:12:15 -04:00
Clement Tsang
e602cc7a39
ci: update various dependencies as of 2023-06-11 (#1201)
Updates:
- actions/checkout
- crazy-max/ghaction-choclatey
- actions/setup-python
2023-06-11 02:16:29 -04:00
Clement Tsang
9ec95a9740
ci: add a build check for aarch64-linux-android (#1124)
* ci: add a build check for aarch64-linux-android

* appease clippy

* use 1.67.0 for Android due to NDK issue

* remove sparse since it is default now for 1.70 and causes issues with older versions anyway
2023-06-11 02:01:56 -04:00
Clement Tsang
2a354f772f
other: remaining changes needed to get android to build (#1199)
* other: remaining changes needed to get android to build

* update changelog

* simplify disk os-specific code
2023-06-11 01:35:16 -04:00
Clement Tsang
2ba7394ac2
other: have dummy fallback for disk I/O for unsupported OSes (#1198) 2023-06-11 00:01:14 -04:00
Clement Tsang
13a8e5bf0e
refactor: redo how we do get processes between different OSes (#1197)
* refactor: redo how we do some processes between different OSes

* cleanup

* more cleanup

* windows

* freebsd

* clean up linux more, fix broken FreeBSD import

* some more cleanup to remove some big imports
2023-06-10 01:44:15 -04:00
allcontributors[bot]
6b421b48ea
docs: add WenqingZong as a contributor for code (#1196)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-06-09 09:11:35 -04:00
Clement Tsang
e4eaeb1c17
deps: bump battery to 0.8.1 to fix M1 health bug (#1195)
* deps: bump battery to 0.8.1 to fix M1 health bug

* update changelog
2023-06-09 00:47:42 -04:00
Clement Tsang
88bf64ab16
deps: bump hashbrown, once_cell, regex, serde, time, libc, clap (#1194) 2023-06-09 00:26:01 -04:00
Clement Tsang
38d7d0fbc6
deps: bump sysinfo to =0.29.2 (#1193) 2023-06-09 00:03:23 -04:00
Clement Tsang
f0249c61c3
docs: update changelog to include #1191 (#1192) 2023-06-08 19:49:30 -04:00
database64128
48422c4111
bug: ntfs3 mounts don't show up (#1191)
Partitions mounted using the ntfs3 driver in linux (mainlined since 5.15)
won't show up because the name didn't match.
2023-06-08 13:07:18 -04:00
Clement Tsang
1cc0e910b4
refactor: remove outdated collection thread code (#1190)
This was going to be used for in-app config, but it's so old that it's
probably better to just rip it out and start anew in that regard.
2023-06-08 02:48:29 -04:00
Clement Tsang
f0121e6af4
other: enforce unused_imports lint again (#1189)
* other: enforce unused_imports lint again

I think there shouldn't be any issues with enforcing this now...

* set up cfg block so the logging feature doesn't break clippy

* some cleanup + comments
2023-06-08 02:28:36 -04:00
Clement Tsang
086b622c66
feature: use better names for duplicate temp sensors found by /sys/class/thermal (#1187)
* docs: update changelog

* feature: add a counter to duplicate names if using /sys/class/thermal/

* update changelog
2023-06-08 00:05:30 -04:00
Clement Tsang
358bddf990
bug: when getting Linux temps, don't bail ASAP if they fail (#1186)
* bug: when getting Linux temps, don't bail ASAP if they fail

This meant that if hwmon failed, it would never try and get temperatures
from thermal or GPU. The same is true for thermal failing leading to GPU
never running.

* update docs
2023-06-07 21:47:05 -04:00
Clement Tsang
6dd4ea945b
deps: bump clap, ctrc, once_cell (#1183)
Bumps these dependencies, which contains some small fixes/optimizations.
2023-06-04 00:50:21 -04:00
Clement Tsang
5e0900584b
refactor: change canvas macOS check to compile-time (#1184) 2023-06-04 00:18:24 -04:00
Clement Tsang
c6d322263e
other: fix links and broken references in doc comments (#1182) 2023-06-03 05:44:52 -04:00
Clement Tsang
852e2e86c7
refactor: remove typed-builder (#1181) 2023-06-02 00:53:38 -04:00
Clement Tsang
87a793f501
docs: bump mkdocs-material to 9.1.15 (#1180) 2023-06-01 02:27:46 -04:00
Clement Tsang
4e99f31ad0
deps: bump ratatui to 0.21.0 (#1178) 2023-05-31 00:21:55 -04:00
Clement Tsang
74953455dc
refactor: clean up some Linux proc collection code (#1179) 2023-05-31 00:21:34 -04:00
Clement Tsang
88b12a3790
deps: bump regex and log (#1177) 2023-05-29 00:47:29 -04:00
Clement Tsang
635e82a8a2
refactor: remove typed builder from App struct (#1176)
Another one on the chopping block. This also moves out the app
widget logic to a separate struct.
2023-05-28 00:46:13 -04:00
Clement Tsang
9cea3e1a8d
ci: add cache to audit job (#1175)
* ci: add cache to audit job

* always cache, and skip target

* delete registry too
2023-05-27 00:59:16 -04:00
Clement Tsang
a90c32eb73
ci: update rust-cache to 2.4.0 (#1174) 2023-05-27 00:22:29 -04:00
Clement Tsang
eccaf11937
feature: support human times for default_time_value and time_delta (#1172)
* feature: support human times for time interval and default range

* add tests, fix not using ms

* appease clippy

* changelog
2023-05-26 00:42:40 -04:00
Clement Tsang
6b9663a2c2
other: clean up some fixmes (#1171) 2023-05-26 00:19:28 -04:00
Clement Tsang
69318465ae
other: simplify termination/event loop logic (#1169)
This just simplifies the logic around ctrl-c and termination logic and
event loop logic to something simpler and without the need for timeouts
and/or atomics.

Instead, we just make termination an event sent by ctrl-c and use the
same receiver for event handling to react to it and break the loop.
2023-05-25 00:13:04 -04:00
Clement Tsang
b6dc17cfb3
other: clean up thread event code (#1170) 2023-05-24 01:05:49 -04:00
Clement Tsang
ea3f5e628d
deps: bump regex, toml_edit, ctrlc (#1168) 2023-05-24 00:54:39 -04:00
Clement Tsang
2ef7aa97c9
deps: bump dependencies for docs (#1167) 2023-05-24 00:33:31 -04:00
Clement Tsang
11b6fc1df2
deps: bump dependencies as of 2023-05-21 (#1166) 2023-05-23 00:22:17 -04:00
Clement Tsang
57da52b659
deps: bump clap to 4.3.0 (#1165) 2023-05-22 00:25:44 -04:00
Clement Tsang
caa1d1b88b
refactor: remove procfs (#1163)
* refactor: remove procfs, use personal impls/rustix directly

* buffer sharing

* inline

* some cleanup
2023-05-21 00:53:27 -04:00
Clement Tsang
8a49c49267
refactor: remove TypedBuilder for col (#1162)
* refactor: remove TypedBuilder for col

* clean up basic
2023-05-20 01:27:42 -04:00
Clement Tsang
b6f9a9a98d
deps: bump dependencies as of 2023-05-19 (#1161) 2023-05-19 04:04:44 -04:00
Clement Tsang
5aaa2bfa9f
github: update CONTRIBUTING.md 2023-05-19 00:24:46 -04:00
Clement Tsang
13efb87534
github: update some form headers to remove inline code blocks that were misrendering as quotes 2023-05-18 15:03:20 -04:00