System page: add detector process mem%

This commit is contained in:
leccelecce 2023-01-11 23:42:12 +00:00
parent 731db8fb8f
commit 526eb6a12c

View File

@ -144,6 +144,7 @@ export default function System() {
<Th>P-ID</Th> <Th>P-ID</Th>
<Th>Inference Speed</Th> <Th>Inference Speed</Th>
<Th>CPU %</Th> <Th>CPU %</Th>
<Th>Memory %</Th>
</Tr> </Tr>
</Thead> </Thead>
<Tbody> <Tbody>
@ -151,6 +152,7 @@ export default function System() {
<Td>{detectors[detector]['pid']}</Td> <Td>{detectors[detector]['pid']}</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>
<Td>{cpu_usages[detectors[detector]['pid']]?.['mem'] || '- '}%</Td>
</Tr> </Tr>
</Tbody> </Tbody>
</Table> </Table>