Skip to content

Commit

Permalink
Improve CPU usage attempt 2
Browse files Browse the repository at this point in the history
Fixes: #10
  • Loading branch information
sayanarijit committed Apr 22, 2021
1 parent 371d572 commit 89e0c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn keep_reading(tx_msg_in: Sender<Task>, rx_event_reader: Receiver<bool>) {
}
}
} else {
thread::sleep(Duration::from_millis(1));
thread::sleep(Duration::from_millis(50));
}
}
});
Expand Down

0 comments on commit 89e0c48

Please sign in to comment.