diff --git a/internal/deploy/ipfs_stats.go b/internal/deploy/ipfs_stats.go index 0afc882..353fdce 100644 --- a/internal/deploy/ipfs_stats.go +++ b/internal/deploy/ipfs_stats.go @@ -54,6 +54,8 @@ type Peer struct { ID string Addr netip.Addr Sent, Recv int64 + Latency time.Duration // 0 if not measured yet + Inbound bool // it connected to the node, not the other way } // HostPart is one part of the newest publish on the node. @@ -147,6 +149,7 @@ ipfs swarm peers | head -24 | while read -r a; do l=$(ipfs bitswap ledger --enc=json "${a##*/}"