From 868d93ba5a0ced562e88b3bc7c96e9d706008cc8 Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Sat, 15 Jul 2023 00:32:26 +0800 Subject: [PATCH] Remove tag: and do not show traffic for self --- src/app.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index f006e12..4d83146 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -105,7 +105,7 @@ class Peer extends React.Component { var tags = "-" if (this.props.Tags) { - const mapped_items = this.props.Tags?.map(t => { return t }) + const mapped_items = this.props.Tags?.map(t => { return t.split(":")[1] }) tags = mapped_items.join(', ') } @@ -140,7 +140,10 @@ class Peer extends React.Component { : "-" } {this.props.OS} - {this.props.TxBytes} / {this.props.RxBytes} + {this.props.Self + ? "-" + : "" + this.props.TxBytes + " / " + this.props.RxBytes + } ); } }