1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Fix wrong seconds to milliseconds conversion

This commit is contained in:
Andreas Baulig 2021-08-18 20:55:44 +00:00
parent 991d25bcb9
commit 7472b754bf
No known key found for this signature in database
GPG Key ID: 5225DCE5A4A2EE20

View File

@ -161,7 +161,7 @@ func main() {
} else if *timeNow {
headerOrigin.StartTimestamp = int64(time.Now().UnixNano() / int64(time.Millisecond))
} else if !*assumeMilliseconds {
headerOrigin.StartTimestamp = headerOrigin.StartTimestamp * (int64(time.Millisecond) / int64(time.Second))
headerOrigin.StartTimestamp = headerOrigin.StartTimestamp * (int64(time.Second) / int64(time.Millisecond))
}
fmt.Println("\nHeader is now")