Commit c6f5d518 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent af0a82b6
Pipeline #16084 passed with stages
in 1 minute and 33 seconds
import {PeerQuality} from "./api.service"; import { PeerQuality } from './api.service';
export class Quality { export class Quality {
static unreachable = new Quality(0, 0, 0, 0); static unreachable = new Quality(0, 0, 0, 0);
...@@ -16,7 +16,7 @@ export class Quality { ...@@ -16,7 +16,7 @@ export class Quality {
} }
concatPeer(quality?: PeerQuality): Quality { concatPeer(quality?: PeerQuality): Quality {
if (!quality) return Quality.unreachable if (!quality) return this.concatQuality(Quality.unreachable);
return this.concat(quality.delay, quality.jitter, quality.reliability, 0, 1); return this.concat(quality.delay, quality.jitter, quality.reliability, 0, 1);
} }
......
...@@ -45,7 +45,6 @@ export class DashboardComponent implements OnInit { ...@@ -45,7 +45,6 @@ export class DashboardComponent implements OnInit {
}; };
} else { } else {
const link = this.api.connections[from.id]?.[toId]; const link = this.api.connections[from.id]?.[toId];
console.log(link);
if (!link) return; if (!link) return;
if (!to.peers[from.id]) return; if (!to.peers[from.id]) return;
...@@ -75,11 +74,6 @@ export class DashboardComponent implements OnInit { ...@@ -75,11 +74,6 @@ export class DashboardComponent implements OnInit {
this.displayedColumns = ['name', 'id'].concat(this.api.routers.map(r => r.name)); this.displayedColumns = ['name', 'id'].concat(this.api.routers.map(r => r.name));
} }
value(from: number, to: number) {
//
// element.peers[id]?.delay
}
trackById(index: number, item: any) { trackById(index: number, item: any) {
return index; return index;
} }
......
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