From 451346901da28459272b027be3648c35367f0470 Mon Sep 17 00:00:00 2001 From: Demmie <2e3s19@gmail.com> Date: Fri, 20 Oct 2023 23:27:59 -0400 Subject: [PATCH] Fix window poll time for interval margin --- README.md | 2 +- watchers/src/report_client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9dc89bc..58812ad 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/watchers/src/report_client.rs b/watchers/src/report_client.rs index 85c12de..4016695 100644 --- a/watchers/src/report_client.rs +++ b/watchers/src/report_client.rs @@ -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