arunoda / node-usage

process usage lookup with nodejs
MIT License
389 stars 93 forks source link

cpu value return NaN or Infinity ? #30

Open junwatu opened 10 years ago

junwatu commented 10 years ago

On my Linux machine the cpu value sometime return NaN or Infinity. What does it mean?

mmarchini commented 10 years ago

I had the same problem here and I solved it keeping an interval of at least 1 second between two calls of usage.lookup.

Take a look at #1, reading this helped me solve my problem.