ipfs-shipyard / service-worker-gateway-2019-poc

[ARCHIVED] 2019 PoC of IPFS gateway fully running on a Service Worker. For modern (2024+) version see https://github.com/ipfs-shipyard/service-worker-gateway
MIT License
61 stars 11 forks source link

Weird size - use pretty bytes to round it up #23

Closed daviddias closed 6 years ago

daviddias commented 6 years ago
image
vasco-santos commented 6 years ago

That sizes consists of: repoSize / storageMax, which are obtained through ipfs.repo.stat()

lidel commented 6 years ago

FYI WebUI and Companion use https://www.npmjs.com/package/filesize for making human-readable sizes :)

vasco-santos commented 6 years ago

Nice, I will look into that! Thanks @lidel