Browse Source

sets HistLog event loop to block on recv()

master
Jonathan Strong 6 years ago
parent
commit
1af3cf85da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/hist.rs

+ 1
- 1
src/hist.rs View File

@@ -112,7 +112,7 @@ impl HistLog {
.unwrap();

loop {
match rx.try_recv() { //.recv_timeout(Duration::from_millis(1)) {
match rx.recv() { //.recv_timeout(Duration::from_millis(1)) {
//match rx.recv_timeout(Duration::new(1, 0)) {
Ok(Some(Entry { tag, start, end, hist })) => {
wtr.write_histogram(&hist, start.duration_since(UNIX_EPOCH).unwrap(),


Loading…
Cancel
Save