summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2021-05-11 01:38:36 -0400
committerGitHub <noreply@github.com>2021-05-11 01:38:36 -0400
commit0ac449e573f65aa277d2c29d4c742fc1dba9250c (patch)
treed000a6ceedb558d05d95d09f3a6d6e3bad94f21e
parent0f49b89e7889080b278257805c1c5b2f4166aa55 (diff)
bug: forgot to create memory usage string when collapsed (#473)
Adds a line to actually build the string of the summed memory usage. I forgot to make the string after summing the values.
-rw-r--r--CHANGELOG.md6
-rw-r--r--src/data_conversion.rs2
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 692a2cce..45b4b087 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [0.6.1] - Unreleased
+
+## Bug Fixes
+
+- [#473](https://github.com/ClementTsang/bottom/pull/473): Fix missing string creation for memory usage in collapsed entries.
+
## [0.6.0] - 2021-05-09
## Features
diff --git a/src/data_conversion.rs b/src/data_conversion.rs
index c0f8529e..1efc6db4 100644
--- a/src/data_conversion.rs
+++ b/src/data_conversion.rs
@@ -1202,6 +1202,8 @@ pub fn tree_process_data(
p.tw_f64 as u64,
);
+ p.mem_usage_str = get_binary_bytes(p.mem_usage_bytes);
+
p.read_per_sec = disk_io_strings.0;
p.write_per_sec = disk_io_strings.1;
p.total_read = disk_io_strings.2;