mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Perform sec to msec upconversion before first printout
This commit is contained in:
parent
d158c2776e
commit
fa66bf0160
@ -130,6 +130,11 @@ func main() {
|
|||||||
// make a read buffer
|
// make a read buffer
|
||||||
reader := bufio.NewReader(fi)
|
reader := bufio.NewReader(fi)
|
||||||
var headerOrigin HeaderStd = analyze(reader)
|
var headerOrigin HeaderStd = analyze(reader)
|
||||||
|
|
||||||
|
if !*assumeMilliseconds {
|
||||||
|
headerOrigin.StartTimestamp = headerOrigin.StartTimestamp * (int64(time.Second) / int64(time.Millisecond))
|
||||||
|
}
|
||||||
|
|
||||||
printHeader(&headerOrigin)
|
printHeader(&headerOrigin)
|
||||||
|
|
||||||
if flagSeen["out"] {
|
if flagSeen["out"] {
|
||||||
@ -157,8 +162,6 @@ 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 {
|
|
||||||
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