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

Invoke-DbaDbShrink math error #5039

Closed
4 tasks done
olegstrutinskii opened this issue Feb 2, 2019 · 0 comments · Fixed by #5040
Closed
4 tasks done

Invoke-DbaDbShrink math error #5039

olegstrutinskii opened this issue Feb 2, 2019 · 0 comments · Fixed by #5040
Assignees

Comments

@olegstrutinskii
Copy link
Contributor

Before submitting a bug report:

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Steps to Reproduce

Invoke-DbaDbShrink ... -StepSize 512MB ...

Expected Behavior

Shrink database files in 512MB chunks

Actual Behavior

does nothing due to an error in math at line 256

$shrinkSize = $startingSize - (($StepSizeKB * 1024 * 1024) * $i)

all variables is KB units.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant