Skip to content

Commit 782e8a7

Browse files
authored
Merge pull request #220 from jwittner/dev/supportBigFiles
Support files greater than 2 GB
2 parents 602fb72 + 50de740 commit 782e8a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ function Format-BitsPerSecond {
658658
[CmdletBinding()]
659659
param(
660660
[parameter(Mandatory = $true)]
661-
[int] $Bytes,
661+
[int64] $Bytes,
662662

663663
[parameter(Mandatory = $true)]
664664
[int] $Seconds
@@ -760,8 +760,8 @@ function Request-UnitySetupInstaller {
760760
$global:downloadData[$installerFileName] = New-Object PSObject -Property @{
761761
installerFileName = $installerFileName
762762
startTime = Get-Date
763-
totalBytes = $_.Length
764-
receivedBytes = 0
763+
totalBytes = [int64]$_.Length
764+
receivedBytes = [int64]0
765765
isDownloaded = $false
766766
destination = $destination
767767
lastModified = $_.LastModified

0 commit comments

Comments
 (0)