Remove redundant s in output

This commit is contained in:
Wesley Wiser 2018-06-04 23:10:23 -04:00
parent 6a0d37b69c
commit d3aa593a6b

View File

@ -92,7 +92,7 @@ macro_rules! p {
($name:tt, $rustic_name:ident) => {
let (hits, total) = self.query_counts.$rustic_name;
let (hits, total) = if total > 0 {
(format!("{:.2}%", (((hits as f32) / (total as f32)) * 100.0)), total.to_string())
(format!("{:.2}", (((hits as f32) / (total as f32)) * 100.0)), total.to_string())
} else {
("".into(), "".into())
};