Commit c0124156 authored by nanamicat's avatar nanamicat

metric

parent f14d907a
Pipeline #42113 passed with stages
in 1 minute and 21 seconds
...@@ -31,7 +31,7 @@ impl Quality { ...@@ -31,7 +31,7 @@ impl Quality {
if self.reliability == 0.0 { if self.reliability == 0.0 {
i32::MAX i32::MAX
} else { } else {
self.delay + ((1.0 - self.reliability) * 1000.0).round() as i32 + self.cost as i32 / 10 self.delay + ((1.0 - self.reliability) * 10000.0).round() as i32 + self.cost as i32
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment