From: Tom Clegg Date: Thu, 3 Jul 2014 15:11:48 +0000 (-0400) Subject: 3174: Round up, not down, when reporting file sizes in KB. X-Git-Tag: 1.1.0~2493^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c2278f1529e9c6d0488920ec924684208f56e6ee?ds=inline 3174: Round up, not down, when reporting file sizes in KB. --- diff --git a/sdk/python/bin/arv-ls b/sdk/python/bin/arv-ls index 9cfd5e4e21..cccce59c81 100755 --- a/sdk/python/bin/arv-ls +++ b/sdk/python/bin/arv-ls @@ -28,6 +28,7 @@ cr = arvados.CollectionReader(arvados.Keep.get(args.locator)) for f in cr.all_files(): if args.s: - print "{:>10} {}".format(f.size() / 1024, f.stream_name() + "/" + f.name()) + print "{:>10} {}".format((f.size() + 1023) / 1024, + f.stream_name() + "/" + f.name()) else: print f.stream_name() + "/" + f.name()