Skip to content

Commit

Permalink
Fix window poll time for interval margin
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Oct 21, 2023
1 parent d3b9adf commit 4513469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion watchers/src/report_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4513469

Please sign in to comment.