Skip to content

Commit a5787c0

Browse files
committed
fix: sample count
1 parent 71849f8 commit a5787c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ func main() {
158158
m := lo.CountValuesBy(rawTestCaseData, func(item []string) string {
159159
if item[1] == "正常" {
160160
return "正常"
161-
} else {
161+
} else if item[1] == "恶意" {
162162
return "恶意"
163163
}
164+
return "unknown"
164165
})
165166

166167
_ = r.Total.Set(fmt.Sprintf("总样本: %d", len(allTestData)))

0 commit comments

Comments
 (0)