feat(cli): Support displaying storage values in base-2 [#2492] (#2502)

* Update display on repository summary

* Apply throughout app

* Situate units_test

* Update Command Line documentation

* Envar cleanup

* Rename to BytesString

* Restore envar string available for test

* Remove extraneous empty check and restore UIPreferences field for frontend

* PR: config bool cleanup and missed `BaseEnv`s

* Fix lint and test
This commit is contained in:
atom
2022-10-24 20:00:36 -06:00
committed by GitHub
parent 7d47658cbb
commit c5efed01f4
40 changed files with 198 additions and 149 deletions

View File

@@ -126,7 +126,7 @@ type benchResult struct {
c.out.printStdout("%-25v %12v count:%v min:%v 10th:%v 25th:%v 50th:%v 75th:%v 90th:%v max:%v\n",
r.splitter,
units.BytesStringBase10(r.bytesPerSecond)+"/s",
units.BytesString(r.bytesPerSecond)+"/s",
r.segmentCount,
r.min, r.p10, r.p25, r.p50, r.p75, r.p90, r.max,
)
@@ -143,7 +143,7 @@ type benchResult struct {
c.out.printStdout("%3v. %-25v %-12v count:%v min:%v 10th:%v 25th:%v 50th:%v 75th:%v 90th:%v max:%v\n",
ndx,
r.splitter,
units.BytesStringBase10(r.bytesPerSecond)+"/s",
units.BytesString(r.bytesPerSecond)+"/s",
r.segmentCount,
r.min, r.p10, r.p25, r.p50, r.p75, r.p90, r.max)