stored the current second's bw numbers
This commit is contained in:
parent
bb8ce3c1ea
commit
d8bc9f8b1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user