From cd1715cd8fb367a1a265ba068049c73bb37e8a44 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 15 Feb 2024 03:25:48 -0500 Subject: [PATCH] other: add process uptime as a default column (#1411) * other: add process uptime as a default column * update docs --- CHANGELOG.md | 1 + docs/content/usage/widgets/process.md | 6 +----- src/widgets/process_table.rs | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b3f516..134768d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/content/usage/widgets/process.md b/docs/content/usage/widgets/process.md index 83139da1..a28d9677 100644 --- a/docs/content/usage/widgets/process.md +++ b/docs/content/usage/widgets/process.md @@ -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. diff --git a/src/widgets/process_table.rs b/src/widgets/process_table.rs index 3bd9ebcb..0ca64509 100644 --- a/src/widgets/process_table.rs +++ b/src/widgets/process_table.rs @@ -318,6 +318,7 @@ impl ProcWidgetState { TotalWrite, User, State, + Time, ]; default_columns.into_iter().map(make_column).collect()