mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-08-08 23:37:11 +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.