Skip to content

Commit

Permalink
chore: hard-code global stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Dec 16, 2024
1 parent 79e5b38 commit 5d70ab7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/web/src/components/marketing/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ import { OSTinybird } from "@openstatus/tinybird";
const tb = new OSTinybird(env.TINY_BIRD_API_KEY);

export async function Stats() {
const tbLastHourStats = await tb.homeStats({ period: "1h" });
const tbWeeklyStats = await tb.homeStats({ period: "1w" });
// const tbLastHourStats = await tb.homeStats({ period: "1h" });
// const tbWeeklyStats = await tb.homeStats({ period: "1w" });
// const totalActiveMonitors = await api.monitor.getTotalActiveMonitors.query();

return (
<Shell>
<div className="grid grid-cols-1 gap-8 sm:grid-cols-3 sm:gap-16">
<div className="text-center">
<h3 className="font-cal text-3xl">
{numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)}
{/* {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} */}
{numberFormatter(26_000_000)}
</h3>
<p className="font-light text-muted-foreground">Weekly pings</p>
</div>
<div className="text-center">
<h3 className="font-cal text-3xl">
{numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)}
{/* {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} */}
{numberFormatter(155_000)}
</h3>
<p className="font-light text-muted-foreground">
Pings in the last hour
Expand Down

0 comments on commit 5d70ab7

Please sign in to comment.