mirror of
https://github.com/microsoft/ethr.git
synced 2024-11-10 09:03:05 +08:00
Fix count bandwidth on server. (#162)
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
parent
a097185b7d
commit
eb6df4d72c
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ func srvrRunTCPBandwidthTest(test *ethrTest, clientParam EthrClientParam, conn n
|
||||||
ui.printDbg("Error sending/receiving data on a connection for bandwidth test: %v", err)
|
ui.printDbg("Error sending/receiving data on a connection for bandwidth test: %v", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
atomic.AddUint64(&test.testResult.bw, uint64(size))
|
atomic.AddUint64(&test.testResult.bw, uint64(n))
|
||||||
if clientParam.Reverse {
|
if clientParam.Reverse {
|
||||||
sentBytes += uint64(n)
|
sentBytes += uint64(n)
|
||||||
start, waitTime, sentBytes, bytesToSend = enforceThrottle(start, waitTime, totalBytesToSend, sentBytes, bufferLen)
|
start, waitTime, sentBytes, bytesToSend = enforceThrottle(start, waitTime, totalBytesToSend, sentBytes, bufferLen)
|
||||||
|
|
Loading…
Reference in a new issue