-
Notifications
You must be signed in to change notification settings - Fork 74
Storjshare status reports incorrect units for bytes #265
Comments
I don't think this number will be exact as it uses https://github.com/Level/leveldown#leveldown_approximateSize |
I understand it won't be exact to the number of bytes. But it seems to be using the wrong units, showing the number of GiB (gibibytes) but reporting it in GB (gigabytes). It's a small detail, but important for storage utilities to get correct. The difference is using powers of 1000 vs. powers of 1024. If I had a node that currently had between 1000-1023 MB (megabytes) before going up to 1.0 GB, then that would be all the proof I need that it's using the wrong unit and should be showing MiB (mebibytes). But unfortunately all my nodes are currently above 1 GB and nowhere close to 1 TB. I currently have 7 nodes:
Average difference from real GiB: +3.1% |
I've started a new node and I'm recording the output of "storjshare status" once per minute, so hopefully I'll catch it in that 1000-1023 MB telltale zone. |
Are Windows users the primary target for storjshare daemon? Because right now you have the exact problem you listed with users of Linux and Mac OS X, which properly report sizes in the right units. It seems from the various documentation though that Linux users are the primary audience. |
If I understand this, Oneup40 is not asking us to switch to 1,000 instead of 1,024. He is just concerned with the abbreviations being incorrect. I will change them to include the correct abbreviation and make a PR. |
Sector sizes on hard drive. |
As Oneup40 noted in following the bytes() visionmedia/bytes.js#26 github issue on this topic, we appear to be at the mercy of this tool until either... A) They introduce the bits() solutions Until either of those happen, I guess we're unable to do anything about it right now. I suggest closing this issue and reopening it if any traction is made on the above. |
👋 Hey! Thanks for this contribution. Apologies for the delay in responding! We've decided to rearchitect Storj, so that we can scale better. You can read more about this decision here. This means that we are entirely focused on v3 at the moment, in the storj/storj repository. Our white paper for v3 is coming very, very soon - follow along on the blog and in our Rocketchat. As this repository is part of the v2 network, we're no longer maintaining this repository. I am going to close this for now. If you have any questions, I encourage you to jump on Rocketchat and ask them there. Thanks! |
Package Versions
Replace the values below using the output from
storjshare --version
.Replace the values below using the output from
node --version
.Expected Behavior
When running "storjshare status", the CLI should either:
Display the number of bytes stored in powers of 1000, using the SI abbreviations (KB, MB, GB, etc.)
Display the number of bytes stored in powers of 1024, using the binary abbreviations (KiB, MiB, GiB, etc.)
Actual Behavior
"storjshare status" displays the number of bytes stored in powers of 1024, but uses the SI abbreviations (KB, MB, GB, etc.)
As you can see, the number of bytes used is either approximately 3.50 GB or 3.26 GiB. storj appears to report the value in powers of 1024 but labels it with a power of 1000 unit, showing 3.24 GB.
Steps to Reproduce
Please include the steps the reproduce the issue, numbered below. Include as
much detail as possible.
The text was updated successfully, but these errors were encountered: