From 42bba4d37d780fc4efabdb01cee60002e11f2ff6 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 | 5 +---- src/widgets/process_table.rs | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b3f516a..134768d64 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 956e74261..a28d96779 100644 --- a/docs/content/usage/widgets/process.md +++ b/docs/content/usage/widgets/process.md @@ -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: diff --git a/src/widgets/process_table.rs b/src/widgets/process_table.rs index 3bd9ebcb7..0ca64509d 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()