Skip to content

Commit cd1715c

Browse files
committed
other: add process uptime as a default column (#1411)
* other: add process uptime as a default column * update docs
1 parent 3ee8834 commit cd1715c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

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

2021
### Bug Fixes
2122

docs/content/usage/widgets/process.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@ By default, the main process table displays the following information for each p
2727
- Total amount written
2828
- User
2929
- Process state
30-
31-
It can also additionally display the following columns:
32-
33-
- Process running time
30+
- Process uptime
3431

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

3734
- GPU memory use percentage
3835
- GPU core utilization percentage
3936

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

src/widgets/process_table.rs

+1
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ impl ProcWidgetState {
318318
TotalWrite,
319319
User,
320320
State,
321+
Time,
321322
];
322323

323324
default_columns.into_iter().map(make_column).collect()

0 commit comments

Comments
 (0)