mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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…
x
Reference in New Issue
Block a user