mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-10-08 23:35:28 +02:00
fix: info count
This commit is contained in:
1 parent
ad69f8315d
commit
d6aa36fb9c
1 file changed
+6
-6
@@ -71,9 +71,9 @@
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $this.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$count"
|
||||
$ruleCounts += "info:$($count)"
|
||||
} else {
|
||||
$ruleCounts += "$($level):$count, "
|
||||
$ruleCounts += "$($level):$($count), "
|
||||
}
|
||||
}
|
||||
$ruleCounts += ")"
|
||||
@@ -1016,9 +1016,9 @@ function AuditLogSetting {
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $_.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$count"
|
||||
$ruleCounts += "info:$($count)"
|
||||
} else {
|
||||
$ruleCounts += "$($level):$count, "
|
||||
$ruleCounts += "$($level):$($count), "
|
||||
}
|
||||
}
|
||||
$_.RuleCountByLevel = $ruleCounts
|
||||
@@ -1034,9 +1034,9 @@ function AuditLogSetting {
|
||||
foreach ($level in [WELA]::Levels) {
|
||||
$count = $_.RulesCount[$level]
|
||||
if ($level -eq "informational") {
|
||||
$ruleCounts += "info:$count"
|
||||
$ruleCounts += "info:$($count)"
|
||||
} else {
|
||||
$ruleCounts += "$($level):$count, "
|
||||
$ruleCounts += "$($level):$($count), "
|
||||
}
|
||||
}
|
||||
$_.RuleCountByLevel = $ruleCounts
|
||||
|
||||
Reference in new issue
Block a user