Skip to content

Commit

Permalink
fixup! fix: set the minimal sleep interval to 17ms on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Apr 30, 2024
1 parent 0428643 commit 2cd8565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/tests/interceptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ use std::sync::{Arc, Mutex};
use zenoh_core::zlock;

#[cfg(target_os = "windows")]
static MINIMAL_SLEEP_INTERVAL_MS: u64 = 2;
#[cfg(not(target_os = "windows"))]
static MINIMAL_SLEEP_INTERVAL_MS: u64 = 17;
#[cfg(not(target_os = "windows"))]
static MINIMAL_SLEEP_INTERVAL_MS: u64 = 2;

struct IntervalCounter {
first_tick: bool,
Expand Down

0 comments on commit 2cd8565

Please sign in to comment.