Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cpu count estimation #281

Merged
merged 3 commits into from
Dec 29, 2021
Merged

Fix cpu count estimation #281

merged 3 commits into from
Dec 29, 2021

Conversation

Flova
Copy link
Contributor

@Flova Flova commented Dec 29, 2021

Fixes the CPU utilization print in the overview.
It adapts the Docker api requests used to query the number of cpu cores which is needed for the estimation of the CPU utilization.
The used fix is similar to the one applied in docker stats which can be seen here:
https://github.com/docker/cli/blob/a32cd16160f1b41c1c4ae7bee4dac929d1484e59/cli/command/container/stats_helpers.go#L166

The pr closes issue #276.

PR was tested locally with

OS: Up to date Arch Linux
Docker Version: 20.10.12

@bcicen bcicen merged commit 350cb09 into bcicen:master Dec 29, 2021
@bcicen
Copy link
Owner

bcicen commented Dec 29, 2021

merged; thanks @Flova !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants