Commit 94e6bdea authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 5f9127cc
......@@ -20,7 +20,7 @@ export class Quality {
assert(0 <= this.reliability && this.reliability <= 1);
assert(this.cost >= 0);
if (this.reliability === 0) {
return Infinity;
return 10000 + this.cost;
} else {
// 公式
return this.delay + (1 - this.reliability) * 6 + this.cost * 0.1;
......
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