mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Update component.jsx
Refactor size calculation.
This commit is contained in:
@@ -23,7 +23,7 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
if (response) {
|
||||
const totalFilesizeGB = (response.FILESIZE / (1024 ** 3)).toFixed(2);
|
||||
const totalFilesizeGB = (response.FILESIZE / 1024 ** 3).toFixed(2);
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
|
||||
Reference in New Issue
Block a user