mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-27 22:54:03 +08:00
feat: show downlaod and upload speed in per-second form
This commit is contained in:
parent
16fea9213d
commit
49bf6c7e2d
@ -129,13 +129,13 @@ export default () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'DL Speed',
|
accessorKey: 'DL Speed',
|
||||||
accessorFn: (row) => byteSize(row.downloadSpeed),
|
accessorFn: (row) => `${byteSize(row.downloadSpeed)}/s`,
|
||||||
sortingFn: (prev, next) =>
|
sortingFn: (prev, next) =>
|
||||||
prev.original.downloadSpeed - next.original.downloadSpeed,
|
prev.original.downloadSpeed - next.original.downloadSpeed,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'UL Speed',
|
accessorKey: 'UL Speed',
|
||||||
accessorFn: (row) => byteSize(row.uploadSpeed),
|
accessorFn: (row) => `${byteSize(row.uploadSpeed)}/s`,
|
||||||
sortingFn: (prev, next) =>
|
sortingFn: (prev, next) =>
|
||||||
prev.original.uploadSpeed - next.original.uploadSpeed,
|
prev.original.uploadSpeed - next.original.uploadSpeed,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user