summaryrefslogtreecommitdiffhomepage
path: root/src/receive.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-18 15:22:56 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-18 15:22:56 +0200
commit18714fc4a444f3369dc9ca25e5a6e50343770ea4 (patch)
tree2f517973541ac510895a878c5dd9dff86927d947 /src/receive.go
parentbd6027a4d5114df964e88e357b52883411174558 (diff)
Added last_handshake_time fields to UAPI
Diffstat (limited to 'src/receive.go')
-rw-r--r--src/receive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.go b/src/receive.go
index e063c99..d97ca41 100644
--- a/src/receive.go
+++ b/src/receive.go
@@ -540,7 +540,7 @@ func (peer *Peer) RoutineSequentialReceiver() {
return
}
- atomic.AddUint64(&peer.rxBytes, uint64(len(elem.packet)))
+ atomic.AddUint64(&peer.stats.rxBytes, uint64(len(elem.packet)))
device.addToInboundQueue(device.queue.inbound, elem)
}()
}