Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nicer size formatting #2

Open
cfjedimaster opened this issue Apr 17, 2015 · 3 comments
Open

Nicer size formatting #2

cfjedimaster opened this issue Apr 17, 2015 · 3 comments

Comments

@cfjedimaster
Copy link

Currently my IDB size is: 1888272104. It would be nice if it rendered it with a shorthand form as well, like:

1888272104 (18 Megs)

(btw - I totally guessed at 18 megs there)

@jonnysmith1981
Copy link
Owner

I really appreciate the feedback. I have amended the display to show the size primarily in megabytes. So it will now look something like this:

"myObjectStore" "0.33MB (346376 bytes)"

If this looks ok, I'll close the issue.

@cfjedimaster
Copy link
Author

Looks good, but maybe consider trimming the decimal points. I got this:

77.58037567138672MB

which is a bit too precise. ;)

@jonnysmith1981
Copy link
Owner

Whoops. My bad. I thought I'd put the number-rounding in.

This fix has now been committed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants