mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-05 20:38:50 +00:00
Update size_enforcer.go
This commit is contained in:
parent
4a053734d9
commit
bd71e9a122
@ -76,7 +76,6 @@ func checkFileSize(maxSizeBytes int64) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Error checking %s file size: %v\n", DBPath, err)
|
fmt.Printf("Error checking %s file size: %v\n", DBPath, err)
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("Checking if %s is > %s", shared.BytesToHumanReadable(fileStat.Size()), shared.BytesToHumanReadable(maxSizeBytes))
|
|
||||||
if fileStat.Size() > maxSizeBytes {
|
if fileStat.Size() > maxSizeBytes {
|
||||||
pruneOldEntries(fileStat.Size())
|
pruneOldEntries(fileStat.Size())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user