You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Querying the repo statistics using the "--human" flag, initially through the js-ipfs-api and later directly on the IPFS node revealed a curious behavior contradicting the official documentation.
Per docs:
USAGE
ipfs repo stat - Get stats for the currently used repo.
SYNOPSIS
ipfs repo stat [--human]
OPTIONS
--human bool - Output RepoSize in MiB.
Actual result:
Only StorageMax is returned in MiB, NOT RepoSize on go-ipfs docker container
Hello,
Checked the source code [1]. it seems that size is printed as is if it can not make MiB. irb(main):004:0> 615942.0/(1024 *1024) => 0.5874080657958984
Would 0.587 make sense? eg: RepoSize (MiB): 0.587
Version information:
go-ipfs version: 0.4.18-6f19dd5
Repo version: 7
System version: amd64/linux
Golang version: go1.11.1
Type: Bug
Description:
Querying the repo statistics using the "--human" flag, initially through the js-ipfs-api and later directly on the IPFS node revealed a curious behavior contradicting the official documentation.
Per docs:
Actual result:
Only StorageMax is returned in MiB, NOT RepoSize on go-ipfs docker container
The text was updated successfully, but these errors were encountered: