Skip to content

Commit

Permalink
fixed instant speed calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-M committed Dec 28, 2022
1 parent 8e66c2c commit 8238c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func streamRowFromData(lastLoggedTime time.Time, streamId string, data *streamDa
data.lastProcessedEvent.Timestamp.Time().Format("2006-01-02 15:04:05"),
fmt.Sprintf("%.2f", avgSpeed),
fmt.Sprintf("%.2f", divideAsFloats(
1000.*data.messagesProcessed-data.messagesProcessedWhenLastLogged,
1000.*(data.messagesProcessed-data.messagesProcessedWhenLastLogged),
lastLoggedTime.Sub(data.startTime).Milliseconds(),
)),
processedPercent,
Expand Down

0 comments on commit 8238c93

Please sign in to comment.