mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
chore: lint
This commit is contained in:
parent
928f7b84b4
commit
4be047a19f
@ -159,7 +159,9 @@ export default function CameraInfoDialog({
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="text-muted-foreground">
|
<div className="text-muted-foreground">
|
||||||
<div className="ml-2 mt-1">{t("cameras.info.audio")}</div>
|
<div className="ml-2 mt-1">
|
||||||
|
{t("cameras.info.audio")}
|
||||||
|
</div>
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
{t("cameras.info.codec")}{" "}
|
{t("cameras.info.codec")}{" "}
|
||||||
<span className="text-primary">
|
<span className="text-primary">
|
||||||
|
|||||||
@ -548,7 +548,10 @@ export default function GeneralMetrics({
|
|||||||
Object.entries(stats.processes).forEach(([key, procStats]) => {
|
Object.entries(stats.processes).forEach(([key, procStats]) => {
|
||||||
if (procStats.pid.toString() in stats.cpu_usages) {
|
if (procStats.pid.toString() in stats.cpu_usages) {
|
||||||
if (!(key in series)) {
|
if (!(key in series)) {
|
||||||
series[key] = { name: t(`general.otherProcesses.series.${key}`), data: [] };
|
series[key] = {
|
||||||
|
name: t(`general.otherProcesses.series.${key}`),
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = stats.cpu_usages[procStats.pid.toString()]?.cpu;
|
const data = stats.cpu_usages[procStats.pid.toString()]?.cpu;
|
||||||
@ -582,7 +585,10 @@ export default function GeneralMetrics({
|
|||||||
Object.entries(stats.processes).forEach(([key, procStats]) => {
|
Object.entries(stats.processes).forEach(([key, procStats]) => {
|
||||||
if (procStats.pid.toString() in stats.cpu_usages) {
|
if (procStats.pid.toString() in stats.cpu_usages) {
|
||||||
if (!(key in series)) {
|
if (!(key in series)) {
|
||||||
series[key] = { name: t(`general.otherProcesses.series.${key}`), data: [] };
|
series[key] = {
|
||||||
|
name: t(`general.otherProcesses.series.${key}`),
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const data = stats.cpu_usages[procStats.pid.toString()]?.mem;
|
const data = stats.cpu_usages[procStats.pid.toString()]?.mem;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user