Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other: add process uptime as a default column #1411

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [#1344](https://github.com/ClementTsang/bottom/pull/1344): Change the `group` command line-argument to `group_processes` for consistency with the config file option.
- [#1376](https://github.com/ClementTsang/bottom/pull/1376): Group together related command-line arguments in `-h` and `--help`.
- [#1411](https://github.com/ClementTsang/bottom/pull/1411): Add `time` as a default column.

### Bug Fixes

Expand Down
6 changes: 1 addition & 5 deletions docs/content/usage/widgets/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ By default, the main process table displays the following information for each p
- Total amount written
- User
- Process state

It can also additionally display the following columns:

- Process running time
- Process uptime

With the feature flag (`--enable_gpu` on Linux/Windows) and gpu process columns enabled in the configuration:

- GPU memory use percentage
- GPU core utilization percentage


See [the processes configuration page](../../configuration/config-file/processes.md) on how to customize which columns
are shown.

Expand Down
1 change: 1 addition & 0 deletions src/widgets/process_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ impl ProcWidgetState {
TotalWrite,
User,
State,
Time,
];

default_columns.into_iter().map(make_column).collect()
Expand Down