🐛 Fix multiple bugs and reformat code

This commit is contained in:
ajnart
2022-06-12 15:35:41 +02:00
parent 98eaee1234
commit df85fc6b7d
5 changed files with 85 additions and 77 deletions

View File

@@ -12,17 +12,6 @@ import { humanFileSize } from '../../../tools/humanFileSize';
import { IModule } from '../modules';
import { useSetSafeInterval } from '../../../tools/hooks/useSetSafeInterval';
/**
* Format bytes as human-readable text.
*
* @param bytes Number of bytes.
* @param si True to use metric (SI) units, aka powers of 1000. False to use
* binary (IEC), aka powers of 1024.
* @param dp Number of decimal places to display.
*
* @return Formatted string.
*/
export const TotalDownloadsModule: IModule = {
title: 'Download Speed',
description: 'Show the current download speed of supported services',