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

wmsupermon: cpu usage example and custom doesn't work #44

Open
apprehensions opened this issue Jan 25, 2023 · 2 comments
Open

wmsupermon: cpu usage example and custom doesn't work #44

apprehensions opened this issue Jan 25, 2023 · 2 comments

Comments

@apprehensions
Copy link

in the README specified by wmsupermon a example for wmsupermonrc is provided, however using it's cpu usage will always output 0.

cpu1 1954 0 399 1262997 40 0 10 0 0 0

i also found that if i explicitly only request for \4 which would be 1262997, causes a stack smashing error. the math that calculates the usage could be the cause.

@drobban
Copy link
Contributor

drobban commented Feb 2, 2023

someone with regex skills needs to explain that expression in the example for me. =)
or perhaps maybe not, just need to decipher how the tokens is meant to work in expr.y

Will try and see what I can find out in a couple of weeks when I'm done with my new workstation setup

@drobban
Copy link
Contributor

drobban commented Feb 2, 2023

i also found that if i explicitly only request for \4 which would be 1262997, causes a stack smashing error. the math that calculates the usage could be the cause.

Are you able to paste in the entire expression you gave to produce the error, think it will be helpful when I try to reproduce the error

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