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:
Nitin Kumar Maharana 2017-08-31 02:48:22 +05:30 committed by Rohit Yadav
parent d1e61eb3ff
commit dfd01c99ef

View File

@ -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)
};