show cumulative download speed

code refactoring
This commit is contained in:
2024-03-26 10:58:03 +01:00
parent c6e48f4baa
commit 1b8d2e0da6
6 changed files with 40 additions and 18 deletions

View File

@@ -9,4 +9,9 @@ export const loadingAtom = atom({
export const optimisticDownloadsState = atom<RPCResult[]>({
key: 'optimisticDownloadsState',
default: []
})
export const totalDownloadSpeedState = atom<number>({
key: 'totalDownloadSpeedState',
default: 0
})