Skip to content

Commit

Permalink
Merge pull request #211 from bortolin/fix-newimage-totalsize
Browse files Browse the repository at this point in the history
Fix TotalSize value in MB when new image i created from backup file
  • Loading branch information
sanderstad authored Jun 28, 2022
2 parents 44c5838 + 8fc2389 commit 1bf7759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/image/New-DcnImage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@

# If no size set yet, get from restored backup info
if ($dbSizeMB -eq 1) {
$dbSizeMB = $global:dcnBackupInformation.TotalSize
$dbSizeMB = [math]::Round($global:dcnBackupInformation.TotalSize.Megabyte)
}
}
catch {
Expand Down

0 comments on commit 1bf7759

Please sign in to comment.