Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: node pie graphs to use consistent powers in divisor
1. The code determining whether or not the units of requests, limits and capacity required normalization was leaving out capacity in its determination. As such, if the capacity was of different units than requests and limits, they'd be left inconsistent and the percentage would be off by at least a factor of 1000 or 1024. 2. The code normalizing units was erroneously reversing a value in one conditional, and thus erroneously triggering a second conditional which was reversing the work of the first one (multiplying by the same factor by which it had just divided). Rather than fix the bug, it's easier and better to just eliminate this code. The conditionals aren't even necessary, because negative exponentiation "just works".
- Loading branch information