Skip to content

Commit

Permalink
clear console log
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyangXYZ committed Jan 31, 2024
1 parent 732766e commit 68db740
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/core/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ export class NetworkHub {
id: n.id,
type: n.type,
pos: n.pos,
tx_cnt: 0,
rx_cnt: 0,
neighbors: <number[]>[]
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/nodes/end_system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class EndSystem extends Node {
this.routingTable = payload
}
dataPktHandler = (pkt: Packet) => {
console.log('received', pkt)
// console.log('received', pkt)
}
}

Expand Down
1 change: 0 additions & 1 deletion src/core/nodes/tsn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class TSNNode extends Node {

dataPktHandler = (pkt: Packet) => {
if (pkt.e2e_dst != this.id) {
console.log(pkt.e2e_dst)
if (this.routingTable[pkt.e2e_dst] != undefined) {
pkt.mac_src = this.id
pkt.mac_dst = this.routingTable[pkt.e2e_dst]
Expand Down

0 comments on commit 68db740

Please sign in to comment.