Skip to content

Commit

Permalink
fix elapsedTime tags
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Mar 28, 2024
1 parent 883747f commit 0e46fc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,12 @@ export class Stats extends events.EventEmitter {
register,
'elapsedTime',
'',
[],
['datetime'],
() =>
this.elapsedTimeMetric?.set(
{
datetime: this.startTimestampString,
},
(Date.now() - this.startTimestamp) / 1000,
),
)
Expand Down

0 comments on commit 0e46fc4

Please sign in to comment.