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:
parent
991d25bcb9
commit
7472b754bf
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user