Fix window poll time for interval margin

This commit is contained in:
Demmie 2023-10-20 23:27:59 -04:00
parent d3b9adf91c
commit 451346901d
No known key found for this signature in database
GPG Key ID: B06DAA3D432C6E9A
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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