Skip to content

Commit 427ed9e

Browse files
committed
Merge pull request #51 from blalor/careful_max_default_interval
Don't use MaxSampleTimeout if not provided
2 parents 8a89183 + f767b06 commit 427ed9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

canary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (c *Canary) startSensors() {
112112
}
113113
} else {
114114
timeout := target.Interval
115-
if timeout > c.Config.MaxSampleTimeout {
115+
if c.Config.MaxSampleTimeout > 0 && timeout > c.Config.MaxSampleTimeout {
116116
timeout = c.Config.MaxSampleTimeout
117117
}
118118

0 commit comments

Comments
 (0)