This commit is contained in:
Michael Vines
2021-10-22 21:25:54 -07:00
committed by mergify[bot]
parent 293a0d8797
commit 350bb561eb
18 changed files with 35 additions and 52 deletions

View File

@ -40,11 +40,9 @@ impl LogLine {
format!(
"Lost {}%, {}, ({} - {}), sender {}, receiver {}",
((v1 - v2) * 100 / v1),
Byte::from_bytes(v1 - v2)
.get_appropriate_unit(true)
.to_string(),
Byte::from_bytes(v1).get_appropriate_unit(true).to_string(),
Byte::from_bytes(v2).get_appropriate_unit(true).to_string(),
Byte::from_bytes(v1 - v2).get_appropriate_unit(true),
Byte::from_bytes(v1).get_appropriate_unit(true),
Byte::from_bytes(v2).get_appropriate_unit(true),
a,
b
)