bump max runs

This commit is contained in:
nate 2026-03-19 11:20:45 +04:00
parent b1dce432a5
commit d52026f787
2 changed files with 3 additions and 3 deletions

View File

@ -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), {

View File

@ -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,