Skip to content

Commit

Permalink
Update message_handler.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Nov 17, 2023
1 parent cefad19 commit 475075f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,13 @@ pub async fn print_stats(

for freq in frequencies.lock().await.iter_mut() {
let percentage: f64 = (freq.count as f64 / total_all_time_locked as f64) * 100.0;
output.push_str(format!("{} {}: {}/{} ({:.2}%)\n", queue_type, freq.freq, freq.count, total_all_time_locked, percentage));
output.push_str(
format!(
"{} {}: {}/{} ({:.2}%)\n",
queue_type, freq.freq, freq.count, total_all_time_locked, percentage
)
.as_str(),
);
}

println!("{}", output);
Expand Down

0 comments on commit 475075f

Please sign in to comment.