stored the current second's bw numbers

This commit is contained in:
Stephen McQuay 2014-03-08 12:46:25 -08:00
parent bb8ce3c1ea
commit d8bc9f8b1d

View File

@ -69,6 +69,8 @@ outer:
for { for {
select { select {
case <-t.C: case <-t.C:
bw.rxstream[bw.timeI] = bw.curRx
bw.txstream[bw.timeI] = bw.curTx
bw.rxSnap = bw.averages(bw.rxstream) bw.rxSnap = bw.averages(bw.rxstream)
bw.txSnap = bw.averages(bw.txstream) bw.txSnap = bw.averages(bw.txstream)
bw.curTx = 0 bw.curTx = 0