Skip to content

fix agent config cpu req unit formatting#5022

Merged
mantis-toboggan-md merged 1 commit intorancher:masterfrom
mantis-toboggan-md:agent-configuration
May 15, 2023
Merged

fix agent config cpu req unit formatting#5022
mantis-toboggan-md merged 1 commit intorancher:masterfrom
mantis-toboggan-md:agent-configuration

Conversation

@mantis-toboggan-md
Copy link
Member

rancher/dashboard#8871
rancher/dashboard#8864

This PR updates the unit parsing/formatting for cpu requests to use the same utility function used for other mCPU inputs around the Ember UI. The previous solution implemented runs into problems w/ floating point arithmetic accuracy, eg when the value inputted is 1001m this is parsed to 1.001 and 1.001*1000 returns 1000.99....

Screen Shot 2023-05-15 at 10 59 54 AM

@mantis-toboggan-md mantis-toboggan-md added this to the 2.7.next2 milestone May 15, 2023
Copy link
Member

@rak-phillip rak-phillip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mantis-toboggan-md mantis-toboggan-md merged commit 6f465e3 into rancher:master May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants