mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-05 17:51:36 +02:00
Add low shm warning to bottom bar (#19824)
* Add low shm warning to bottom bar * change relevant link
This commit is contained in:
parent
a2ba4e4e39
commit
92555eb835
@ -162,7 +162,8 @@
|
|||||||
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
||||||
"cameraIsOffline": "{{camera}} is offline",
|
"cameraIsOffline": "{{camera}} is offline",
|
||||||
"detectIsSlow": "{{detect}} is slow ({{speed}} ms)",
|
"detectIsSlow": "{{detect}} is slow ({{speed}} ms)",
|
||||||
"detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)"
|
"detectIsVerySlow": "{{detect}} is very slow ({{speed}} ms)",
|
||||||
|
"shmTooLow": "/dev/shm allocation ({{total}} MB) should be increased to at least {{min}} MB."
|
||||||
},
|
},
|
||||||
"enrichments": {
|
"enrichments": {
|
||||||
"title": "Enrichments",
|
"title": "Enrichments",
|
||||||
|
@ -32,6 +32,19 @@ export default function useStats(stats: FrigateStats | undefined) {
|
|||||||
return problems;
|
return problems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check shm level
|
||||||
|
const shm = memoizedStats.service.storage["/dev/shm"];
|
||||||
|
if (shm?.total && shm?.min_shm && shm.total < shm.min_shm) {
|
||||||
|
problems.push({
|
||||||
|
text: t("stats.shmTooLow", {
|
||||||
|
total: shm.total,
|
||||||
|
min: shm.min_shm,
|
||||||
|
}),
|
||||||
|
color: "text-danger",
|
||||||
|
relevantLink: "/system#storage",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// check detectors for high inference speeds
|
// check detectors for high inference speeds
|
||||||
Object.entries(memoizedStats["detectors"]).forEach(([key, det]) => {
|
Object.entries(memoizedStats["detectors"]).forEach(([key, det]) => {
|
||||||
if (det["inference_speed"] > InferenceThreshold.error) {
|
if (det["inference_speed"] > InferenceThreshold.error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user