summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-02-15 03:25:48 -0500
committerClementTsang <34804052+ClementTsang@users.noreply.github.com>2024-02-15 03:27:19 -0500
commitcd1715cd8fb367a1a265ba068049c73bb37e8a44 (patch)
tree6df27fac908dc1a66f0b48320fd2e54ccb54d881
parent3ee883420a4f1b6db29cff2d6cb7273b5b620e68 (diff)
other: add process uptime as a default column (#1411)
* other: add process uptime as a default column * update docs
-rw-r--r--CHANGELOG.md1
-rw-r--r--docs/content/usage/widgets/process.md6
-rw-r--r--src/widgets/process_table.rs1
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()