window-maker / dockapps

Window Maker dockapps collection
http://repo.or.cz/dockapps.git
63 stars 29 forks source link

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

Open apprehensions opened 1 year ago

apprehensions commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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