summaryrefslogtreecommitdiffhomepage
path: root/src/send.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/send.go
parentbd6027a4d5114df964e88e357b52883411174558 (diff)
Added last_handshake_time fields to UAPI
Diffstat (limited to 'src/send.go')
-rw-r--r--src/send.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/send.go b/src/send.go
index ca42934..7cdb806 100644
--- a/src/send.go
+++ b/src/send.go
@@ -379,7 +379,8 @@ func (peer *Peer) RoutineSequentialSender() {
if err != nil {
return
}
- atomic.AddUint64(&peer.txBytes, uint64(len(elem.packet)))
+
+ atomic.AddUint64(&peer.stats.txBytes, uint64(len(elem.packet)))
peer.TimerResetKeepalive()
}()