mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
fix rounding of capacity percentage
This commit is contained in:
parent
9219f0f682
commit
c57d39dcd9
@ -23,7 +23,7 @@ export default ['templateUrl', 'ComponentsStrings',
|
||||
scope.$watch('capacity', function() {
|
||||
if (scope.totalCapacity !== 0) {
|
||||
var percentageCapacity = Math
|
||||
.round(scope.capacity / scope.totalCapacity * 10) / 10 * 100;
|
||||
.round(scope.capacity / scope.totalCapacity * 1000) / 10;
|
||||
|
||||
scope.CapacityStyle = {
|
||||
'flex-grow': percentageCapacity * 0.01
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user