Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit c576765

Browse files
committed
reduce retry time
1 parent f6ee902 commit c576765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/itmdump.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ fn run() -> Result<()> {
120120
}
121121
Err(Error(ErrorKind::EofBeforePacket, _)) => {
122122
if follow {
123-
thread::sleep(Duration::from_millis(100));
123+
// NOTE 10 ms let us achieve 60 FPS in the worst case scenario
124+
thread::sleep(Duration::from_millis(10));
124125
} else {
125126
// !follow and EOF. Exit.
126127
return Ok(());

0 commit comments

Comments
 (0)