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
1 changed files with 1 additions and 1 deletions

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")