Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
henil committed Dec 17, 2022
1 parent 51b53b4 commit 25b4d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/clients/rumqttasync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub async fn start(id: &str, payload_size: usize, count: usize) -> Result<(), Bo
}

let elapsed_ms = start.elapsed().as_millis();
let throughput = acks_count as usize / elapsed_ms as usize;
let throughput = acks_count / elapsed_ms as usize;
let throughput = throughput * 1000;

let print = common::Print {
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/clients/rumqttasyncqos0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub async fn start(id: &str, payload_size: usize, count: usize) -> Result<(), Bo
}

let elapsed_ms = start.elapsed().as_millis();
let throughput = count as usize / elapsed_ms as usize;
let throughput = count / elapsed_ms as usize;
let throughput = throughput * 1000;
let print = common::Print {
id: id.to_owned(),
Expand Down

0 comments on commit 25b4d21

Please sign in to comment.