Skip to content

Commit

Permalink
fix: add missing time gap from the previous changes when combining
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari committed Sep 8, 2024
1 parent 4a7d794 commit f7c7599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wasm/activity-service/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ func (s *Service) combineActivity(activities []activity.Activity, manufacturer t
lastDistance = getLastDistanceOfRecords(newActLastSes.Records)

// Update summary
gap := (curActFirstSes.StartTime.Sub(newActLastSes.EndTime()).Seconds() * 1000)
newActLastSes.TotalElapsedTime += uint32(gap)
newActLastSes.TotalTimerTime += uint32(gap)
aggregator.Aggregate(newActLastSes.Session, curActFirstSes.Session)
newActLastSes.Summarize()

Expand Down

0 comments on commit f7c7599

Please sign in to comment.