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

[Bug] Restore-DbaDatabase backup size calc #5688

Closed
garethnewman opened this issue Jun 7, 2019 · 3 comments · Fixed by #5698
Closed

[Bug] Restore-DbaDatabase backup size calc #5688

garethnewman opened this issue Jun 7, 2019 · 3 comments · Fixed by #5698
Assignees

Comments

@garethnewman
Copy link
Contributor

Environmental information

#### PowerShell version:

Name                           Value                                                                                                                                                                                                                                
----                           -----                                                                                                                                                                                                                                
PSVersion                      5.1.14409.1018                                                                                                                                                                                                                                                                                                                                                                                                                                                  

#### dbatools Module version:
Name    : dbatools
Path    : C:\Program Files\WindowsPowerShell\Modules\dbatools\0.9.834\dbatools.psd1
Version : 0.9.834

#### SQL Server: 
Microsoft SQL Server 2016 (SP2-CU6)

#### Errors Received
NO ERRORS

#### Steps to Reproduce
Restore a database consisting of multiple files.

#### Expected Behavior
expect BackupSize to be the backup full size.

#### Actual Behavior
multiplying backup full size by backup file count, think it should divide it.
@potatoqualitee
Copy link
Member

thanks gareth! any chance you can tackle this one? stuart has been out for a while.

@garethnewman
Copy link
Contributor Author

Yes, I suspect there is an internal function being called as a quick CTRL+F didn't find what I was looking for. I'll sort it, should be simple enough once I find it.

@potatoqualitee
Copy link
Member

thanks so much 🙇

garethnewman pushed a commit to garethnewman/dbatools that referenced this issue Jun 10, 2019
potatoqualitee pushed a commit that referenced this issue Jun 10, 2019
* fix bug #5688

* removed whitespaces
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.

2 participants