mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
remove unused for now
This commit is contained in:
parent
5d9c8decee
commit
ad85df4c31
@ -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()}`;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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");
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user