mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-10059: Dashboard ignores resource value that is less than 1%
Root Cause: The API returns the percentage value as floating point number but In UI it is converted to floor value of that number. Hence for values less than 1%, the value is being converted to 0% and it doesn't show the value in the UI. Solution: Removed the conversion, now it represents as it is(Floating point value).
This commit is contained in:
parent
d1e61eb3ff
commit
dfd01c99ef
@ -267,7 +267,7 @@
|
||||
zoneID: capacity.zoneid, // Temporary fix for dashboard
|
||||
zoneName: capacity.zonename,
|
||||
type: cloudStack.converters.toCapacityCountType(capacity.type),
|
||||
percent: parseInt(capacity.percentused),
|
||||
percent: capacity.percentused,
|
||||
used: cloudStack.converters.convertByType(capacity.type, capacity.capacityused),
|
||||
total: cloudStack.converters.convertByType(capacity.type, capacity.capacitytotal)
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user