mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 07:32:11 +01:00
fix: clarify avg session length comment (#10)
This commit is contained in:
@ -512,7 +512,7 @@ export function sessionMetrics(
|
||||
const uniqueUsers = uniqueUserIds.size;
|
||||
const avgSessionLength =
|
||||
validSessionsForDuration > 0
|
||||
? totalSessionDuration / validSessionsForDuration / 1000 // Convert ms to minutes
|
||||
? totalSessionDuration / validSessionsForDuration / 1000 // Convert ms to seconds
|
||||
: 0;
|
||||
const avgResponseTime =
|
||||
validSessionsForResponseTime > 0
|
||||
|
||||
Reference in New Issue
Block a user