Skip to content

Commit 30c3dc6

Browse files
committed
Adjust log deletion target in log size management
1 parent 46eef3a commit 30c3dc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

application/backend/app/containerdb/containerdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func checkAndManageLogSize(host string, container string) error {
9797
return nil
9898
}
9999

100-
bytesToDelete := int64(float64(totalLogBytes) * 0.20)
100+
bytesToDelete := int64(float64(totalLogBytes) * 0.10)
101101
deletedBytes := int64(0)
102102

103103
sort.Slice(allLogs, func(i, j int) bool {
@@ -146,7 +146,7 @@ func checkAndManageLogSize(host string, container string) error {
146146
}
147147
}
148148

149-
fmt.Printf("Deleted total: %d bytes (target: %d = 30%%)\n", deletedBytes, bytesToDelete)
149+
fmt.Printf("Deleted total: %d bytes (target: %d = 10%%)\n", deletedBytes, bytesToDelete)
150150
return nil
151151
}
152152

0 commit comments

Comments
 (0)