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

Show dataset size #309

Merged
merged 1 commit into from
Sep 16, 2015
Merged

Show dataset size #309

merged 1 commit into from
Sep 16, 2015

Conversation

gheinrich
Copy link
Contributor

No description provided.

@lukeyeager
Copy link
Member

Cool stuff, thanks! Any reason we can't add this for ModelJobs, too? Those snapshots can really rack up in disk space.

And it would probably be good to at least write a basic sanity test that checks the size of an empty directory or something.

@gheinrich
Copy link
Contributor Author

Sure, I'll do that!

else:
return "%d%s" % (num, suffix)
num /= 1024.0
return "%.1f%s%s" % (num, 'Y', suffix)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a refactoring of digits.utils.sizeof_fmt (here)?

@gheinrich
Copy link
Contributor Author

Sorry I hadn't noticed there was already a function for this. I'll remove the one I added.

@lukeyeager
Copy link
Member

Awesome thanks! Go ahead and merge if this is ready - it looks good to me.

gheinrich added a commit that referenced this pull request Sep 16, 2015
@gheinrich gheinrich merged commit b2c2c4a into NVIDIA:master Sep 16, 2015
@gheinrich gheinrich deleted the dataset_size branch October 4, 2015 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants