From 49bf6c7e2d76c7de0bf9cb6f538a369460080628 Mon Sep 17 00:00:00 2001 From: kunish Date: Tue, 29 Aug 2023 23:07:52 +0800 Subject: [PATCH] feat: show downlaod and upload speed in per-second form --- src/pages/Connections.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Connections.tsx b/src/pages/Connections.tsx index 52db203..22e9161 100644 --- a/src/pages/Connections.tsx +++ b/src/pages/Connections.tsx @@ -129,13 +129,13 @@ export default () => { }, { accessorKey: 'DL Speed', - accessorFn: (row) => byteSize(row.downloadSpeed), + accessorFn: (row) => `${byteSize(row.downloadSpeed)}/s`, sortingFn: (prev, next) => prev.original.downloadSpeed - next.original.downloadSpeed, }, { accessorKey: 'UL Speed', - accessorFn: (row) => byteSize(row.uploadSpeed), + accessorFn: (row) => `${byteSize(row.uploadSpeed)}/s`, sortingFn: (prev, next) => prev.original.uploadSpeed - next.original.uploadSpeed, },