Skip to content

Commit

Permalink
fix wg peer upload/download bytes mapping
Browse files Browse the repository at this point in the history
Signed-off-by: xeptore <[email protected]>
  • Loading branch information
xeptore committed Mar 23, 2023
1 parent 76dd6e9 commit 2d2aabb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ func (wg *wgPeers) Usage(ctx context.Context) ([]ingest.PeerUsage, time.Time, er

out := funcutils.Map(dev.Peers, func(p wgtypes.Peer) ingest.PeerUsage {
return ingest.PeerUsage{
Upload: uint(p.ReceiveBytes), // TODO: make sure this upload/download mappings are correct
Download: uint(p.TransmitBytes),
Upload: uint(p.TransmitBytes),
Download: uint(p.ReceiveBytes),
PublicKey: p.PublicKey.String(),
}
})
Expand Down

0 comments on commit 2d2aabb

Please sign in to comment.