chore: lint

This commit is contained in:
ZhaiSoul 2026-03-24 20:30:13 +08:00 committed by cnb
parent 928f7b84b4
commit 4be047a19f
No known key found for this signature in database
GPG Key ID: 074E9EA8B7D5A8A3
2 changed files with 11 additions and 3 deletions

View File

@ -159,7 +159,9 @@ export default function CameraInfoDialog({
</div>
) : (
<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">
{t("cameras.info.codec")}{" "}
<span className="text-primary">

View File

@ -548,7 +548,10 @@ export default function GeneralMetrics({
Object.entries(stats.processes).forEach(([key, procStats]) => {
if (procStats.pid.toString() in stats.cpu_usages) {
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;
@ -582,7 +585,10 @@ export default function GeneralMetrics({
Object.entries(stats.processes).forEach(([key, procStats]) => {
if (procStats.pid.toString() in stats.cpu_usages) {
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;