Fix confusing storage display when calculating per camera usage (#5835)

This commit is contained in:
Patrick Decat 2023-03-25 22:49:46 +01:00 committed by GitHub
parent 7d589bd6e1
commit 4c5cd02ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ export default function Storage() {
<Tbody> <Tbody>
<Tr> <Tr>
<Td>{Math.round(camera['usage_percent'] ?? 0)}%</Td> <Td>{Math.round(camera['usage_percent'] ?? 0)}%</Td>
<Td>{camera['bandwidth'] ? getUnitSize(camera['bandwidth']) : 'Calculating...'}/hr</Td> <Td>{camera['bandwidth'] ? `${getUnitSize(camera['bandwidth'])}/hr` : 'Calculating...'}</Td>
</Tr> </Tr>
</Tbody> </Tbody>
</Table> </Table>