feat: check size setting

This commit is contained in:
fukusuket
2025-04-18 14:54:00 +09:00
parent ebcc05629a
commit 29c36b14c6

View File

@@ -1464,9 +1464,9 @@ function AuditFileSize {
$results += [PSCustomObject]@{
LogFilePath = Split-Path $logInfo.LogFilePath -Leaf
CurrentLogSize = "{0:N2} MB" -f ($logInfo.FileSize / 1MB)
MaxLogSize = "{0:N2} MB" -f ($logInfo.MaximumSizeInBytes / 1MB)
Default = $logNames[$logName][0] #
Recommended = $logNames[$logName][1] #
MaxLogSize = "{0} MB" -f [math]::Floor($logInfo.MaximumSizeInBytes / 1MB)
Default = $logNames[$logName][0]
Recommended = $logNames[$logName][1]
}
}