mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 10:15:22 +03:00
System page: fix timeago error due to drift
This commit is contained in:
parent
7130d93616
commit
8c866cf6ba
@ -87,7 +87,9 @@ export default function System() {
|
|||||||
|
|
||||||
{service.last_updated && (
|
{service.last_updated && (
|
||||||
<p>
|
<p>
|
||||||
<span>Last refreshed: <TimeAgo time={service.last_updated * 1000} dense /></span>
|
<span>
|
||||||
|
Last refreshed: <TimeAgo time={(service.last_updated - 5) * 1000} dense />
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@ -255,11 +257,15 @@ export default function System() {
|
|||||||
|
|
||||||
{(() => {
|
{(() => {
|
||||||
if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 1)
|
if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 1)
|
||||||
return <Td>{cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped)</Td>
|
return (
|
||||||
|
<Td>
|
||||||
|
{cameras[camera]['detection_fps']} ({cameras[camera]['skipped_fps']} skipped)
|
||||||
|
</Td>
|
||||||
|
);
|
||||||
else if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 0)
|
else if (cameras[camera]['pid'] && cameras[camera]['detection_enabled'] == 0)
|
||||||
return <Td>disabled</Td>
|
return <Td>disabled</Td>;
|
||||||
|
|
||||||
return <Td>- </Td>
|
return <Td>- </Td>;
|
||||||
})()}
|
})()}
|
||||||
|
|
||||||
<Td>{cpu_usages[cameras[camera]['pid']]?.['cpu'] || '- '}%</Td>
|
<Td>{cpu_usages[cameras[camera]['pid']]?.['cpu'] || '- '}%</Td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user