Code cleanup (#353)

This commit is contained in:
David Colburn
2022-01-19 02:13:06 -08:00
committed by GitHub
parent 6400de1c10
commit 5bea9debb7
35 changed files with 223 additions and 218 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ func SaturatedUsToCompactNtp(us int64) uint32 {
}
// TimeMicrosToNtp convert us to NtpTime (from webrtc)
func TimeMicrosToNtp(time_us int64) *NtpTime {
timeNtpUs := time_us + NtpJan1970Sec*MicroSecondsInSecond
func TimeMicrosToNtp(us int64) *NtpTime {
timeNtpUs := us + NtpJan1970Sec*MicroSecondsInSecond
// Convert seconds to uint32 through uint64 for well-defined cast.
// Wrap around (will happen in 2036) is expected for ntp time.