Skip to content

Commit

Permalink
other: add process uptime as a default column (#1411)
Browse files Browse the repository at this point in the history
* other: add process uptime as a default column

* update docs
  • Loading branch information
ClementTsang authored Feb 15, 2024
1 parent fa03cb1 commit 42bba4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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
5 changes: 1 addition & 4 deletions docs/content/usage/widgets/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ 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:

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

0 comments on commit 42bba4d

Please sign in to comment.