Skip to content

Commit eaff52c

Browse files
committed
docs: Add comment/changelog about not including guest twice
1 parent 5526fe7 commit eaff52c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
- [#637](https://github.com/ClementTsang/bottom/pull/637): Fix process CPU calculation if /proc/stat CPU line has less values than expected
1515

16+
## Changes
17+
18+
- [#637](https://github.com/ClementTsang/bottom/pull/637): Remove duplicate guest time in process CPU calculation
19+
1620
## [0.6.5] - 2021-12-19
1721

1822
## Bug Fixes

src/app/data_harvester/processes/linux.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn calculate_idle_values(line: String) -> (f64, f64) {
5353
let steal: f64 = str_to_f64(val.next());
5454

5555
// Note we do not get guest/guest_nice, as they are calculated as part of user/nice respectively
56+
// See https://github.com/htop-dev/htop/blob/main/linux/LinuxProcessList.c
5657

5758
let idle = idle + iowait;
5859
let non_idle = user + nice + system + irq + softirq + steal;

0 commit comments

Comments
 (0)