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


   > > > 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. I think maybe this exception occurs 
depending on different laptop hardware environments. So I think there are two 
things need to do.
   > 
   > > 
   > 
   > > 1.Find why it returns NaN. And I found the issue 
[naver/pinpoint#914](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.
   > 
   > 
   > 
   > OK, good suggestions. do you mind to create a PR to resolve this ? 
   
   I will do it.


----------------------------------------------------------------
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