mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
fix rounding on score
This commit is contained in:
parent
3b1079283c
commit
1eb63ba7a4
@ -340,7 +340,7 @@ export default function InputWithTags({
|
|||||||
config?.ui.time_format === "24hour" ? endTime : convertTo12Hour(endTime)
|
config?.ui.time_format === "24hour" ? endTime : convertTo12Hour(endTime)
|
||||||
}`;
|
}`;
|
||||||
} else if (filterType === "min_score" || filterType === "max_score") {
|
} else if (filterType === "min_score" || filterType === "max_score") {
|
||||||
return (Number(filterValues) * 100).toString() + "%";
|
return Math.round(Number(filterValues) * 100).toString() + "%";
|
||||||
} else {
|
} else {
|
||||||
return filterValues as string;
|
return filterValues as string;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user