From ebcc05629a7a5ade11e767ef6324c3fa9ab511ef Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 18 Apr 2025 14:52:39 +0900 Subject: [PATCH] feat: check size setting --- WELA.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 665aa95b..2ad32354 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1463,8 +1463,8 @@ function AuditFileSize { $logInfo = Get-WinEvent -ListLog $logName -ErrorAction Stop $results += [PSCustomObject]@{ LogFilePath = Split-Path $logInfo.LogFilePath -Leaf - CurrentLogSize = "{0} MB" -f ($logInfo.FileSize / 1MB) - MaxLogSize = "{0} MB" -f ($logInfo.MaximumSizeInBytes / 1MB) + CurrentLogSize = "{0:N2} MB" -f ($logInfo.FileSize / 1MB) + MaxLogSize = "{0:N2} MB" -f ($logInfo.MaximumSizeInBytes / 1MB) Default = $logNames[$logName][0] # Recommended = $logNames[$logName][1] # }