From d8bc9f8b1d27bbada22fa46621baa4b6e83eab97 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 8 Mar 2014 12:46:25 -0800 Subject: [PATCH] stored the current second's bw numbers --- bandwidth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bandwidth.go b/bandwidth.go index ab8bcc1..ae327c8 100644 --- a/bandwidth.go +++ b/bandwidth.go @@ -69,6 +69,8 @@ outer: for { select { case <-t.C: + bw.rxstream[bw.timeI] = bw.curRx + bw.txstream[bw.timeI] = bw.curTx bw.rxSnap = bw.averages(bw.rxstream) bw.txSnap = bw.averages(bw.txstream) bw.curTx = 0