Skip to content

Commit df01a03

Browse files
fix: Fix website log cleanup selection state
1 parent c8673b6 commit df01a03

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

agent/app/service/device_clean.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,12 +690,11 @@ func loadWebsiteLogTree(fileOp fileUtils.FileOp) []dto.CleanTree {
690690
for _, website := range websites {
691691
size3, _ := fileOp.GetDirSize(path.Join(GetSiteDir(website.Alias), "log"))
692692
res = append(res, dto.CleanTree{
693-
ID: uuid.NewString(),
694-
Label: website.PrimaryDomain,
695-
Size: uint64(size3),
696-
IsCheck: size3 > 5*1024,
697-
Type: "website_log",
698-
Name: website.Alias,
693+
ID: uuid.NewString(),
694+
Label: website.PrimaryDomain,
695+
Size: uint64(size3),
696+
Type: "website_log",
697+
Name: website.Alias,
699698
})
700699
}
701700
return res

0 commit comments

Comments
 (0)