mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-29 23:29:01 +03:00
Fixes (#19038)
* Fix Norwegian language code for date-fns module import * Fix incorrect apple compatibility change * Add other and unused as separate storage items --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
co-authored by
Nicolas Mowen
parent
178117183e
commit
cd54a81150
@@ -42,12 +42,13 @@ export default function StorageMetrics({
|
||||
}
|
||||
|
||||
const totalStorage = {
|
||||
used: 0,
|
||||
used: stats.service.storage["/media/frigate/recordings"]["used"],
|
||||
camera: 0,
|
||||
total: stats.service.storage["/media/frigate/recordings"]["total"],
|
||||
};
|
||||
|
||||
Object.values(cameraStorage).forEach(
|
||||
(cam) => (totalStorage.used += cam.usage),
|
||||
(cam) => (totalStorage.camera += cam.usage),
|
||||
);
|
||||
setLastUpdated(Date.now() / 1000);
|
||||
return totalStorage;
|
||||
@@ -118,7 +119,7 @@ export default function StorageMetrics({
|
||||
</div>
|
||||
<StorageGraph
|
||||
graphId="general-recordings"
|
||||
used={totalStorage.used}
|
||||
used={totalStorage.camera}
|
||||
total={totalStorage.total}
|
||||
/>
|
||||
{earliestDate && (
|
||||
|
||||
Reference in New Issue
Block a user