add bandwidth alerts

This commit is contained in:
Henry Dollman
2024-10-12 17:22:25 -04:00
parent b464fa5b3f
commit 6c31263e60
6 changed files with 20 additions and 5 deletions

View File

@@ -164,12 +164,13 @@ export default function SystemsTable({ filter }: { filter?: string }) {
},
{
accessorKey: 'info.b',
size: 80,
size: 115,
header: ({ column }) => sortableHeader(column, 'Net', EthernetIcon),
cell: (info) => {
const val = (info.getValue() as number) || 0
return (
<span className="tabular-nums whitespace-nowrap pl-1">
{decimalString((info.getValue() as number) || 0, 2)} MB/s
{decimalString(val, val >= 100 ? 1 : 2)} MB/s
</span>
)
},