diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 2cf8a9e..e089926 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -369,7 +369,7 @@ export const dashboard = new Elysia() const pings = await sql` SELECT * FROM pings WHERE monitor_id = ${params.id} - ORDER BY checked_at DESC LIMIT 100 + ORDER BY checked_at DESC LIMIT 200 `; return html("detail", { nav: "monitors", monitor, pings, plan: resolved?.plan || "free" }); @@ -389,7 +389,7 @@ export const dashboard = new Elysia() const pings = await sql` SELECT * FROM pings WHERE monitor_id = ${params.id} - ORDER BY checked_at DESC LIMIT 100 + ORDER BY checked_at DESC LIMIT 200 `; const chartPings = pings.slice().reverse(); return new Response(latencyChartSSR(chartPings), { diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index 3cd73ce..c702014 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -183,7 +183,7 @@ 'us-west': '🇺🇸 US West' }; - const MAX_RUNS = 25; + const MAX_RUNS = 100; const chartPings = <%~ JSON.stringify(chartPings.map(p => ({ latency_ms: p.latency_ms, region: p.region || '__none__', checked_at: p.checked_at, up: p.up, run_id: p.run_id || null,