mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-05 19:15:33 +00:00
Fix window poll time for interval margin
This commit is contained in:
parent
d3b9adf91c
commit
451346901d
@ -78,7 +78,7 @@ Matches are case sensitive regular expressions between implicit ^ and $:
|
||||
- `.*` matches any number of any characters
|
||||
- `.+` matches 1 or more any characters.
|
||||
- `word` is an exact match.
|
||||
- Use escapes `\` to match special characters, e.g. `org\.kde\.Dolpin`
|
||||
- Use escapes `\` to match special characters, e.g. `org\.kde\.Dolphin`
|
||||
|
||||
#### Captures
|
||||
|
||||
|
@ -95,7 +95,7 @@ impl ReportClient {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let interval_margin = self.config.poll_time_idle.as_secs_f64() + 1.0;
|
||||
let interval_margin = self.config.poll_time_window.as_secs_f64() + 1.0;
|
||||
self.client
|
||||
.heartbeat(&self.active_window_bucket_name, &event, interval_margin)
|
||||
.await
|
||||
|
Loading…
x
Reference in New Issue
Block a user