I noticed that if i have this `reduce` filter and ...
# general
r
I noticed that if i have this
reduce
filter and it was working but then leaving a few resources per account and never cleaning them up
Copy code
limit: 5
    limit-percent: 10
It seemed like there was only 2 resources found and then custodian would calculate 10% of that which is 0.2 and then it would round it down instead of up so we'd have N number of resources per account that were not getting flagged.
The fix was to remove the
limit-percent
or increase it gradually. We opted to remove it and reduce the
limit
to 1
Is this a bug? Shouldnt it always reduce to at least 1 instead of zero ?