rtptime: fix time encoding on arm32 (#274) (#277)

This commit is contained in:
Alessandro Ros
2023-05-08 13:54:51 +02:00
committed by GitHub
parent 49d0d56367
commit 67d4106adc
4 changed files with 27 additions and 11 deletions

View File

@@ -943,7 +943,7 @@ func (c *Client) do(req *base.Request, skipResponse bool, allowFrames bool) (*ba
c.session = sx.Session
if sx.Timeout != nil && *sx.Timeout > 0 {
c.keepalivePeriod = time.Duration(float64(*sx.Timeout)*0.8) * time.Second
c.keepalivePeriod = time.Duration(((*sx.Timeout)*10)/8) * time.Second
}
}