Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

truncate event timestamps to floor value

TzeYiing2cea914eb7d0
diff --git a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
index 2e6abb81906..8c7f2cdfafc 100644
--- a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
@@ -33,7 +33,7 @@ const LogEventChart: React.FC<Props> = ({ data, onBarClick }) => {
}
const useAggregated = (data: LogData[]) => {
- const truncateToMinute = (micro: number) => Math.round(micro / 1000 / 1000 / 60) * 60
+ const truncateToMinute = (micro: number) => Math.floor(micro / 1000 / 1000 / 60) * 60
return useMemo(() => {
const countMap = data
.map((d) => {