mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -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 {
|
} else if *timeNow {
|
||||||
headerOrigin.StartTimestamp = int64(time.Now().UnixNano() / int64(time.Millisecond))
|
headerOrigin.StartTimestamp = int64(time.Now().UnixNano() / int64(time.Millisecond))
|
||||||
} else if !*assumeMilliseconds {
|
} 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")
|
fmt.Println("\nHeader is now")
|
||||||
|
Loading…
Reference in New Issue
Block a user