projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f144998
)
For bug #156014, always round up the next kB so that it doesn't show 0 kB when some...
author
Zac Medico
<zmedico@gentoo.org>
Thu, 23 Nov 2006 12:10:22 +0000
(12:10 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 23 Nov 2006 12:10:22 +0000
(12:10 -0000)
svn path=/main/trunk/; revision=5122
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index 92c5b98fe78cee9fb792bd78c6880a023f2f2af3..0651da960015033995e22843785f5198a30d6e40 100755
(executable)
--- a/
bin/emerge
+++ b/
bin/emerge
@@
-274,6
+274,10
@@
def countdown(secs=5, doing="Starting"):
def format_size(mysize):
if type(mysize) not in [types.IntType,types.LongType]:
return str(mysize)
+ if 0 != mysize % 1024:
+ # Always round up to the next kB so that it doesn't show 0 kB when
+ # some small file still needs to be fetched.
+ mysize += 1024 - mysize % 1024
mystr=str(mysize/1024)
mycount=len(mystr)
while (mycount > 3):