We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file:client.go func (c *Client) getBandWidth(cycle int) (int, int) { var recvBW, sendBW int if c.producer != nil { sendBW = c.producer.GetSendBandwidth(cycle) }
recvBW = c.recvByte / cycle / 1000 c.recvByte = 0 return recvBW, sendBW }
file:webmproducer.go // GetSendBandwidth calc the sending bandwidth with cycle(s) func (t *WebMProducer) GetSendBandwidth(cycle int) int { bw := t.sendByte / cycle / 1000 t.sendByte = 0 return bw }
fixed recvBW = c.recvByte / cycle / 1024 bw := t.sendByte / cycle / 1024
The text was updated successfully, but these errors were encountered:
Thanks , 1024 is right
Sorry, something went wrong.
No branches or pull requests
Your environment.
What did you do?
file:client.go
func (c *Client) getBandWidth(cycle int) (int, int) {
var recvBW, sendBW int
if c.producer != nil {
sendBW = c.producer.GetSendBandwidth(cycle)
}
recvBW = c.recvByte / cycle / 1000
c.recvByte = 0
return recvBW, sendBW
}
file:webmproducer.go
// GetSendBandwidth calc the sending bandwidth with cycle(s)
func (t *WebMProducer) GetSendBandwidth(cycle int) int {
bw := t.sendByte / cycle / 1000
t.sendByte = 0
return bw
}
fixed
recvBW = c.recvByte / cycle / 1024
bw := t.sendByte / cycle / 1024
What did you expect?
What happened?
The text was updated successfully, but these errors were encountered: