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

CPU Utilization not working in en_US locale #4

Open
sberl opened this issue Dec 9, 2020 · 1 comment
Open

CPU Utilization not working in en_US locale #4

sberl opened this issue Dec 9, 2020 · 1 comment

Comments

@sberl
Copy link

sberl commented Dec 9, 2020

I think this is the same problem as issue #2, which was closed without being resolved.
The problem is the locale dependent presentation of the time of day. In the USA, the time is shown as a 12 hour time with a separate column for AM and PM, while other locales use a 24 hour clock.
This shifted all the columns and messed up the parsing.
By specifying the environment variable as part of the command, the time presentation will be consistent across all systems.
In addition, the sudo is not required for execution of the mpstat command. It just slows things down, so I removed it.

@RichFind
Copy link

RichFind commented Apr 20, 2021

This fixes the problem I was having in the US.
Can we get this merged?

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

No branches or pull requests

2 participants