mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-27 00:29:31 +00:00
Update size_enforcer.go
This commit is contained in:
parent
80e97e7f7e
commit
17e1ccf9ef
@ -62,7 +62,7 @@ func getMaxEntriesDBByteSize() (int64, error) {
|
|||||||
maxEntriesDBByteSize := defaultMaxDatabaseSizeBytes
|
maxEntriesDBByteSize := defaultMaxDatabaseSizeBytes
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
maxEntriesDBSizeByteSEnvVarValue := os.Getenv(shared.MaxEntriesDBSizeByteSEnvVar)
|
maxEntriesDBSizeByteSEnvVarValue := os.Getenv(shared.MaxEntriesDBSizeBytesEnvVar)
|
||||||
if maxEntriesDBSizeByteSEnvVarValue != "" {
|
if maxEntriesDBSizeByteSEnvVarValue != "" {
|
||||||
maxEntriesDBByteSize, err = strconv.ParseInt(maxEntriesDBSizeByteSEnvVarValue, 10, 64)
|
maxEntriesDBByteSize, err = strconv.ParseInt(maxEntriesDBSizeByteSEnvVarValue, 10, 64)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user