I get a division by zero error when first starting symon. It looks like you recently changed this logic and maybe haven't tested with clean state? I'm not too familiar with the code but this looks to fix it.
The first time through this logic idle will be the same as the cdr of symon--default-linux-last-cpu-ticks so you get a division by zero.
I get a division by zero error when first starting symon. It looks like you recently changed this logic and maybe haven't tested with clean state? I'm not too familiar with the code but this looks to fix it.
The first time through this logic
idle
will be the same as the cdr ofsymon--default-linux-last-cpu-ticks
so you get a division by zero.