Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Return uptime average resonse time for chart in seconds

Blue Mouse1c4b6fcd3ff2
diff --git a/apps/production/src/analytics/analytics.service.ts b/apps/production/src/analytics/analytics.service.ts
index 105dcc92c..06aae447e 100644
--- a/apps/production/src/analytics/analytics.service.ts
+++ b/apps/production/src/analytics/analytics.service.ts
@@ -2569,7 +2569,7 @@ export class AnalyticsService {
const baseQuery = `
SELECT
${selector},
- avg(responseTime) as avgResponseTime
+ round(divide(avg(responseTime), 1000), 2) as avgResponseTime
FROM (
SELECT responseTime,
${timeBucketFunc}(created) as tz_created