Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Svedrin committed Jul 24, 2020
1 parent 3615d2e commit cb5d90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ fn run(port: u16) -> Result<()> {
histogram_opts!("diskio_queued_request_size_bytes", "Request size in bytes when queued")
.buckets(SIZE_HISTOGRAM_BUCKETS.iter().map(|x| (*x as f64) * 1024.0).collect()),
&["device", "optype"]
).expect("Couldn't set up total time histogram");
).expect("Couldn't set up queue request size histogram");

let h_disk_reqsz = register_histogram_vec!(
histogram_opts!("diskio_disk_request_size_bytes", "Request size in bytes when sent to disk")
.buckets(SIZE_HISTOGRAM_BUCKETS.iter().map(|x| (*x as f64) * 1024.0).collect()),
&["device", "optype"]
).expect("Couldn't set up total time histogram");
).expect("Couldn't set up disk request size histogram");

let g_insertions_len = register_gauge!(
"insertions_hashmap_len",
Expand Down

0 comments on commit cb5d90e

Please sign in to comment.