Commit Graph

219 Commits

Author SHA1 Message Date
Clement Tsang
dd66ae774c
refactor: simplify some config -> constraints code (#1383)
* refactor: simplify some config -> constraints code

* iteratively progress...

* update bcr; this might need testing since I removed some old proc code

* widget side

* fix battery

* fix widget tests with bandaid for now

The issue was that the calculations assume a certain ratio for CPU
legends.

* add some tests

* bump up

* fix proc drawing issues

So with the proc widget in certain places, there would be a panic during
constraint determination.

Looks like back when I wrote this I made some gross assumptions about
certain things. In particular, the problem here was that the search
added an additional "one" height, so that needs to be accounted for
after we removed the "doubling" code.

* tests

* fix tests

* reorganize tests

* clippy

* fix cross tests not working

* fix builds for android
2024-01-15 04:19:18 -05:00
Clement Tsang
6b62176554
refactor: rearrange/resort args (#1376)
* clean up Cargo.toml

* some small cleanup

* refactor: group together similar args in the help generation and code

This groups together related arguments in both the help text and the
code itself.

* update changelog

* clippy

* builder pattern instead
2024-01-10 19:07:22 -05:00
Clement Tsang
631f7208e4
deps: bump anyhow, clap, and thiserror (#1365) 2023-12-27 23:13:07 -05:00
Justin Martin
28d2950d92
deps: update ratatui version (#1362)
* cargo update ratatui

* replace convert_arc_labels with convert_mem_labels

* remove redundant generic

---------

Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-12-25 17:28:54 -05:00
Clement Tsang
a1168cac67
refactor: remove once_cell (#1361)
* refactor: remove once_cell

* some missing fixes
2023-12-23 04:35:42 -05:00
dependabot[bot]
c6a3393419
chore(deps): bump zerocopy from 0.7.26 to 0.7.31 (#1357)
Bumps [zerocopy](https://github.com/google/zerocopy) from 0.7.26 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases)
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/zerocopy/compare/v0.7.26...v0.7.31)

---
updated-dependencies:
- dependency-name: zerocopy
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 03:02:35 -05:00
Clement Tsang
fab86e833a
other: add back local time in debug logs (#1346)
* other: add back local time in debug logs

This still has a UTC fallback.

* cleanup and some warnings
2023-12-02 04:53:31 -05:00
Clement Tsang
2db881e3cf
deps: bump dependencies as of 2023-11-27 (#1338) 2023-11-27 23:06:51 -05:00
Clement Tsang
cf447e6a4e
deps: update sysinfo to 0.29.11 (#1337) 2023-11-27 22:37:50 -05:00
Clement Tsang
a5bbe5e333
deps: bump toml_edit to 0.21.0 (#1320)
* deps: bump toml_edit to 0.21.0

* fix some formatting
2023-11-16 17:24:45 -05:00
Clement Tsang
5d455354dd
bump clap and add nushell/fig completions (#1300)
* add nushell and fig completion generation

* now bump clap

* bump cargo-action too

* add rust-version key and set to 1.70.0, N-2
2023-09-12 03:36:45 -04:00
Clement Tsang
6256742f81
deps: bump sysinfo to =0.29.10 (#1298) 2023-09-11 00:13:17 -04:00
Clement Tsang
1ef0c05aa6
deps: bump dependencies as of 2023-08-26 (#1287) 2023-08-26 21:16:43 -04:00
Clement Tsang
11676bb6c1
deps: pin serde to 1.0.188 (#1286)
* deps: pin serde to 1.0.188

* changelog
2023-08-26 21:02:22 -04:00
Clement Tsang
ac55add21e
deps: bump windows to 0.51.1 (#1279)
* deps: bump windows to 0.51.1

* some changes to fit new API
2023-08-22 17:27:36 -04:00
Clement Tsang
2e2b32ce71
deps: bump dependencies as of 2023-08-18 (#1277)
* deps: update root dependencies

* run cargo update

* revert windows for now

I wll handle it in separate dep bump since it requires more changes
2023-08-20 16:02:27 -04:00
Clement Tsang
ea6f87f54b
deps: pin serde to <=1.0.171 (#1278) 2023-08-19 16:06:53 -04:00
Clement Tsang
54c7fe5ea3
deps: pin sysinfo to 0.29.8 (#1273) 2023-08-16 05:45:47 -04:00
Clement Tsang
619e9d9c1b
deps: bump deps as of 2023-08-08 (#1272) 2023-08-09 01:27:56 -04:00
Clement Tsang
43e3ab00ea
deps: pin sysinfo to 0.29.7 (#1268) 2023-07-29 02:24:35 -04:00
Clement Tsang
dbf054506f
deps: bump dependencies as of 2023-07-24 (#1265) 2023-07-24 04:02:59 -04:00
Clement Tsang
0e8feca616
deps: pin sysinfo to 0.29.6 (#1263) 2023-07-23 03:21:24 -04:00
Clement Tsang
646c9f191b
deps: Update ratatui 0.22.0 (#1261)
* deps: bump ratatui to 0.22.0

* fix missing new fields
2023-07-21 00:19:25 -04:00
Clement Tsang
d2b945957f
deps: bump some dependencies as of 2023-07-19 (#1260) 2023-07-20 02:25:02 -04:00
Clement Tsang
c1556d263e
deps: lock sysinfo to 0.29.5 (#1255) 2023-07-17 01:31:11 -04:00
Clement Tsang
53c51c7c83
deps: clean and update dpes in Cargo.toml (#1254) 2023-07-12 03:44:09 -04:00
Clement Tsang
ccc7091529
deps: bump regex, serde, thiserror (#1250) 2023-07-09 05:20:12 -04:00
Clement Tsang
275daa1f63
deps: lock sysinfo to 0.29.4 (#1247) 2023-07-07 00:25:27 -04:00
Clement Tsang
567ba3760b
deps: bump deps as of 2023-07-06 (#1246) 2023-07-06 07:33:30 -04:00
Clement Tsang
7240661aab
deps: bump dependencies as of 2023-07-03 (#1240)
* deps: bump deps as of 2023-07-02

* run cargo update
2023-07-03 00:47:02 -04:00
Clement Tsang
9c368815dd
deps: bump deps as of 2023-06-29 (#1233)
* deps: bump deps as of 2023-06-29, clean up Cargo.toml a bit

* fix deprecated function call
2023-06-29 00:48:49 -04:00
Clement Tsang
fc027ece68
deps: bump deps as of 2023-06-27 (#1232)
Bumps:
- clap
- indexmap
- itertools
- libc
- serde_json
- toml_edit
2023-06-28 10:45:56 -04:00
Clement Tsang
aa191a981d
bug: fix core dump if the terminal is closed while bottom is open (#1230)
* bug: fix core dump if the terminal is closed

The cause was:

- bottom thinks it's panicking if the terminal is closed.
- The panic hook tried to print out to the terminal - but the terminal
  was closed! It would unwrap and thus panic even harder.
- To solve this, we just make the panic hook calls not unwrap, since
  honestly if they fail it's whatever as far as I understand it.

* update changelog
2023-06-27 01:57:32 -04:00
Clement Tsang
8d078f8d71
deps: bump clap, rustix, serde_json (#1210) 2023-06-17 01:48:59 -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
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
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
852e2e86c7
refactor: remove typed-builder (#1181) 2023-06-02 00:53:38 -04:00
Clement Tsang
4e99f31ad0
deps: bump ratatui to 0.21.0 (#1178) 2023-05-31 00:21:55 -04:00
Clement Tsang
88b12a3790
deps: bump regex and log (#1177) 2023-05-29 00:47: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
ea3f5e628d
deps: bump regex, toml_edit, ctrlc (#1168) 2023-05-24 00:54:39 -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
b6f9a9a98d
deps: bump dependencies as of 2023-05-19 (#1161) 2023-05-19 04:04:44 -04:00
Clement Tsang
0a98ad1b93
deps: bump dependencies as of 2023-05-17 (#1160) 2023-05-18 02:05:57 -04:00