Skip to content

Commit 4b83047

Browse files
committed
fix high load when scrape time is 0
fixes #43 Signed-off-by: Markus Blaschke <[email protected]>
1 parent a3e6f86 commit 4b83047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type (
3636
)
3737

3838
func (c *CollectorBase) IsEnabled() bool {
39-
return c.ScrapeTime != nil && c.ScrapeTime.Seconds() >= 0
39+
return c.ScrapeTime != nil && c.ScrapeTime.Seconds() > 0
4040
}
4141

4242
func (c *Config) GetJson() []byte {

0 commit comments

Comments
 (0)