Change detection start epoch to running/idle

This commit is contained in:
James Leece 2023-01-10 10:25:34 +00:00
parent 3941787bd9
commit d6721e9d84

View File

@ -142,7 +142,7 @@ export default function System() {
<Thead> <Thead>
<Tr> <Tr>
<Th>P-ID</Th> <Th>P-ID</Th>
<Th>Detection Start</Th> <Th>Detection Status</Th>
<Th>Inference Speed</Th> <Th>Inference Speed</Th>
<Th>CPU %</Th> <Th>CPU %</Th>
</Tr> </Tr>
@ -150,7 +150,7 @@ export default function System() {
<Tbody> <Tbody>
<Tr> <Tr>
<Td>{detectors[detector]['pid']}</Td> <Td>{detectors[detector]['pid']}</Td>
<Td>{detectors[detector]['detection_start']}</Td> <Td>{detectors[detector]['detection_start'] > 0 ? ('running') : ('idle')}</Td>
<Td>{detectors[detector]['inference_speed']} ms</Td> <Td>{detectors[detector]['inference_speed']} ms</Td>
<Td>{cpu_usages[detectors[detector]['pid']]?.['cpu'] || '- '}%</Td> <Td>{cpu_usages[detectors[detector]['pid']]?.['cpu'] || '- '}%</Td>
</Tr> </Tr>