diff --git a/ui/app/mirrors/edit/[mirrorId]/aggregatedCountsByInterval.ts b/ui/app/mirrors/edit/[mirrorId]/aggregatedCountsByInterval.ts index b2fdf7b1fb..b9b3216625 100644 --- a/ui/app/mirrors/edit/[mirrorId]/aggregatedCountsByInterval.ts +++ b/ui/app/mirrors/edit/[mirrorId]/aggregatedCountsByInterval.ts @@ -36,7 +36,7 @@ function aggregateCountsByInterval( // Iterate through the timestamps and populate the aggregatedCounts object for (let { timestamp, count } of timestamps) { - const date = roundUpToNearestNMinutes(timestamp, 15); + const date = roundUpToNearestNMinutes(timestamp, 1); const formattedTimestamp = moment(date).format(timeUnit); if (!aggregatedCounts[formattedTimestamp]) { @@ -64,6 +64,10 @@ function aggregateCountsByInterval( currentTimestamp.setHours(currentTimestamp.getHours() - 1); } else if (interval === '15min') { currentTimestamp.setMinutes(currentTimestamp.getMinutes() - 15); + } else if (interval === '1min') { + currentTimestamp.setMinutes(currentTimestamp.getMinutes() - 1); + } else if (interval === '5min') { + currentTimestamp.setMinutes(currentTimestamp.getMinutes() - 5); } else if (interval === 'month') { currentTimestamp.setMonth(currentTimestamp.getMonth() - 1); } else if (interval === 'day') { diff --git a/ui/app/mirrors/edit/[mirrorId]/cdcGraph.tsx b/ui/app/mirrors/edit/[mirrorId]/cdcGraph.tsx index cdc6d91a37..951baeaa3c 100644 --- a/ui/app/mirrors/edit/[mirrorId]/cdcGraph.tsx +++ b/ui/app/mirrors/edit/[mirrorId]/cdcGraph.tsx @@ -1,5 +1,6 @@ 'use client'; import { Label } from '@/lib/Label'; +import { BarChart } from '@tremor/react'; import moment from 'moment'; import { useEffect, useState } from 'react'; import ReactSelect from 'react-select'; @@ -51,15 +52,15 @@ function CdcGraph({ syncs }: { syncs: SyncStatusRow[] }) {