mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-06 09:26:33 +00:00
Previously, this code converted to a string and reparsed back to a numeric Quantity. Keeping it numeric avoids the overhead, but also removes a (theoretical) run-time panic if the re-parse failed. In addition, since Quantity can now store quantities <1, convert openstack.org/rxTxFactor back to its original ratio, rather than arbitrarily scaling it up by 1000.