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

[bugfix] centos Top10 shows missing one #1870

Merged
merged 6 commits into from
Apr 28, 2024
Merged

[bugfix] centos Top10 shows missing one #1870

merged 6 commits into from
Apr 28, 2024

Conversation

zhangshenghang
Copy link
Member

@zhangshenghang zhangshenghang commented Apr 27, 2024

What's changed?

#1871

Top 10 Memory and CPU monitoring, only Top 9 is actually displayed

The script for the current query

script: ps -aux | sort -k3nr | awk 'BEGIN{ print "pid cpu_usage mem_usage command" } {print $2, $3, $4, $11}'| head -n 10

Modified script

script: ps -aux | sort -k3nr | awk 'BEGIN{ print "pid cpu_usage mem_usage command" } {print $2, $3, $4, $11}'| head -n 11

Checklist

Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!👍

@tomsun28 tomsun28 added the good first pull request Good for newcomers label Apr 28, 2024
@tomsun28 tomsun28 added this to the 1.6.0 milestone Apr 28, 2024
@tomsun28 tomsun28 merged commit a14aeb2 into apache:master Apr 28, 2024
3 checks passed
@tomsun28 tomsun28 linked an issue Apr 28, 2024 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] Centos Top10 shows missing one
2 participants