mirror of https://github.com/apache/cloudstack.git
some minor improvements to the stats module
This commit is contained in:
parent
e283bc7f05
commit
7abfb9f2e4
|
|
@ -1729,7 +1729,7 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
|
||||
if(numRowsUsed == 0)
|
||||
{
|
||||
if((!Double.isInfinite(value))&&(!Double.isInfinite(value)))
|
||||
if((!Double.isInfinite(value))&&(!Double.isNaN(value)))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
|
@ -1741,7 +1741,7 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
}
|
||||
else
|
||||
{
|
||||
if((!Double.isInfinite(value/numRowsUsed))&&(!Double.isInfinite(value/numRowsUsed)))
|
||||
if((!Double.isInfinite(value/numRowsUsed))&&(!Double.isNaN(value/numRowsUsed)))
|
||||
{
|
||||
return (value/numRowsUsed);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue