Skip to content

Commit

Permalink
Fix gaps in MiniSEED records
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed May 18, 2024
1 parent 0e44398 commit b2150f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Starting from v2.2.5, all notable changes to this project will be documented in this file.

## v2.12.5

- Fix gaps in MiniSEED records

## v2.12.4

- Update frontend map tile provider to OpenStreetMap
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.12.4
v2.12.5
3 changes: 2 additions & 1 deletion feature/geophone/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ func (g *Geophone) Run(options *feature.FeatureOptions, waitGroup *sync.WaitGrou
for {
<-g.Ticker.C
currentTime, _ := duration.Timestamp(options.Status.System.Offset)
timeDiff := duration.Difference(currentTime, options.Status.LastRecvTime)
// Set packet timestamp, note that the timestamp in buffer is the start of the packet
options.Status.Buffer.TS = currentTime.UnixMilli() - time.Second.Milliseconds()
options.Status.Buffer.TS = currentTime.UnixMilli() - timeDiff.Milliseconds()
// Set last received time is the current timestamp
options.Status.LastRecvTime = currentTime
options.Status.System.Messages++
Expand Down

0 comments on commit b2150f3

Please sign in to comment.