Skip to content

Commit

Permalink
fix high load when scrape time is 0
Browse files Browse the repository at this point in the history
fixes #43

Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Jun 15, 2023
1 parent a3e6f86 commit 4b83047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type (
)

func (c *CollectorBase) IsEnabled() bool {
return c.ScrapeTime != nil && c.ScrapeTime.Seconds() >= 0
return c.ScrapeTime != nil && c.ScrapeTime.Seconds() > 0
}

func (c *Config) GetJson() []byte {
Expand Down

0 comments on commit 4b83047

Please sign in to comment.