fix int overflow for large recoveries

This commit is contained in:
rlogwood
2024-06-07 16:58:42 -04:00
parent 471420a762
commit 14d38a1cbd

View File

@ -104,7 +104,7 @@ function ShowSizes() {
[string]$description, [string]$description,
[Parameter(Mandatory = $true, Position = 1)] [Parameter(Mandatory = $true, Position = 1)]
[int]$sizeInBytes [Int64]$sizeInBytes
) )
# Convert the size to kilobytes (KB) # Convert the size to kilobytes (KB)
@ -203,7 +203,7 @@ function Show-Duplicates {
) )
$num_dups = 0 $num_dups = 0
$total_dup_size = 0 $total_dup_size = 0.0
foreach ($entry in $files.GetEnumerator()) { foreach ($entry in $files.GetEnumerator()) {
$dup_files = $entry.Value $dup_files = $entry.Value