zk-phi / symon

Tiny graphical system monitor
289 stars 26 forks source link

Prevent division by zero error #13

Closed gregsexton closed 9 years ago

gregsexton commented 9 years ago

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.

zk-phi commented 9 years ago

oops, thanks! I'm using windows computer and so is not well tested on linux. sorry.