Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a size comparison #58

Merged
merged 1 commit into from
May 22, 2014
Merged

Fix a size comparison #58

merged 1 commit into from
May 22, 2014

Conversation

tih
Copy link
Contributor

@tih tih commented May 16, 2014

To correctly compare two sizes, each specified using a number with a letter suffix (M, G, &c), you have to multiply each number by the factor implied by the suffix, not divide it. The current code would accept a change from e.g. 1G to 1M as an increase.

To correctly compare two sizes, each specified using a number with a letter suffix (M, G, &c), you have to multiply each number by the factor implied by the suffix, not divide it.  The current code would accept a change from e.g. 1G to 1M as an increase.
underscorgan pushed a commit that referenced this pull request May 22, 2014
Fix a size comparison
@underscorgan underscorgan merged commit 959d13b into puppetlabs:master May 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants