yangyichao-mango commented on issue #2927:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/2927#issuecomment-642653025


   > but accordin to the API doc of getSystemCpuLoad, it will return [0.0,1.0], 
how can it return Nan?
   
   Can you paste the API doc of getSystemCpuLoad, I do not find the description 
about [0.0,1.0] when I check the source code java doc. But it actually returns 
NaN in my laptop. So I think there are two things need to do.
   
   1.Find why it returns NaN. And I found the issue 
https://github.com/naver/pinpoint/issues/914, and it use the same 
`OperatingSystemMXBean.getSystemCpuLoad()`, and also returns NaN.
   2.I think whatever the reason is, it's better to add Double.isNaN check.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to