🩹 fix duration check

This commit is contained in:
Fenny
2020-11-13 18:35:23 +01:00
parent c57c524007
commit deb10fb2a7
5 changed files with 5 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ func configDefault(config ...Config) Config {
if cfg.Table == "" {
cfg.Table = ConfigDefault.Table
}
if int(cfg.GCInterval) == 0 {
if int(cfg.GCInterval.Seconds()) <= 0 {
cfg.GCInterval = ConfigDefault.GCInterval
}
return cfg