modified: RozmiarBloku/RozamiarBloku.ps1

This commit is contained in:
Tomasz Kostrzewa 2024-06-19 07:26:18 +02:00
parent fc348cdb4f
commit 249417a2db

View File

@ -327,10 +327,11 @@ Write-Host " KB."
Write-host "Najmniejsza wartość to: " -NoNewline
Write-host "$minValue" -ForegroundColor Green -NoNewline
Write-Host " KB."
""
Write-Host "Wartości najbliższe dla mediany to: "
$tmp | Where-Object "Rozmiar bloku" -ne "1 GB+" | Where-Object {[float]$_."Suma KB" -le $median} | Sort-Object "Suma KB" -Descending | Select-Object -First 1
$tmp | Where-Object "Rozmiar bloku" -ne "1 GB+" | Where-Object {[float]$_."Suma KB" -ge $median} | Sort-Object "Suma KB" | Select-Object -First 1
""
Start-Sleep 1
$tmp | Export-Csv -Path "$($env:userprofile)\wielkosc_bloku_sumaKB.csv" -NoTypeInformation -Force
Write-Host "Plik wielkosc_bloku_sumaKB.csv zapisano w w lokalizacji $($env:userprofile)"