Commit 90631bcb authored by nanamicat's avatar nanamicat

delay

parent a07d1f23
Pipeline #42429 passed with stages
in 2 minutes and 49 seconds
...@@ -13,7 +13,7 @@ impl Quality { ...@@ -13,7 +13,7 @@ impl Quality {
pub fn concat(&mut self, next: &PeerQuality, cost: u32) { pub fn concat(&mut self, next: &PeerQuality, cost: u32) {
self.delay += next.delay as i32; self.delay += next.delay as i32;
self.jitter += next.jitter as u32; self.jitter += next.jitter as u32;
self.reliability *= next.reliability as f32 / 255.0; self.reliability *= next.reliability as f32 / 64.0;
self.cost += cost; self.cost += cost;
} }
......
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