Open chichangjing1 opened 3 years ago
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 }
Thanks , 1024 is right
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 }
What did you expect?
What happened?