mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
add bandwidth alerts
This commit is contained in:
@@ -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>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user