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
1 changed files with 2 additions and 0 deletions

View File

@ -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