remove unused for now

This commit is contained in:
Nicolas Mowen 2024-04-03 14:58:18 -06:00
parent 5d9c8decee
commit ad85df4c31
2 changed files with 0 additions and 8 deletions

View File

@ -26,9 +26,6 @@ export default function SystemGraph({
const formatTime = useCallback( const formatTime = useCallback(
(val: unknown) => { (val: unknown) => {
console.log(
`inside the check we have ${updateTimes.length} times and we are looking for ${val}`,
);
const date = new Date(updateTimes[Math.round(val as number)] * 1000); const date = new Date(updateTimes[Math.round(val as number)] * 1000);
return `${date.getHours() > 12 ? date.getHours() - 12 : date.getHours()}:${date.getMinutes()}`; return `${date.getHours() > 12 ? date.getHours() - 12 : date.getHours()}:${date.getMinutes()}`;
}, },

View File

@ -4,7 +4,6 @@ import { useEffect, useMemo, useState } from "react";
import SystemGraph from "@/components/graph/SystemGraph"; import SystemGraph from "@/components/graph/SystemGraph";
import { useFrigateStats } from "@/api/ws"; import { useFrigateStats } from "@/api/ws";
import TimeAgo from "@/components/dynamic/TimeAgo"; import TimeAgo from "@/components/dynamic/TimeAgo";
import { FrigateConfig } from "@/types/frigateConfig";
import { import {
DetectorCpuThreshold, DetectorCpuThreshold,
DetectorMemThreshold, DetectorMemThreshold,
@ -598,7 +597,3 @@ function GeneralMetrics({ lastUpdated, setLastUpdated }: GeneralMetricsProps) {
</> </>
); );
} }
function CameraMetrics() {
const { data: config } = useSWR<FrigateConfig>("config");
}