Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 5035 Details for
Bug 9699
Patch for portage emerge & ebuild to easily check how much to download.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds humansize function for converting int to a human readable size.
output.py.patch (text/plain), 438 bytes, created by
Jonathan Hunt
on 2002-10-26 06:19:05 UTC
(
hide
)
Description:
Adds humansize function for converting int to a human readable size.
Filename:
MIME Type:
Creator:
Jonathan Hunt
Created:
2002-10-26 06:19:05 UTC
Size:
438 bytes
patch
obsolete
>--- ./output.py Sun Oct 27 00:00:35 2002 >+++ /home/jhunt/emergesize/output.py Sat Oct 26 23:22:02 2002 >@@ -37,3 +37,13 @@ > > def red(text): > return codes["red"]+text+codes["reset"] >+ >+def humansize(size): >+ "Converts size into a string with a human readable size. Ie converts 1024 to 1KB etc." >+ sizes=["B","KB","MB","GB"] >+ i = 0; >+ fsize=float(size) >+ while(fsize > 1024): >+ i+=1 >+ fsize /= 1024 >+ return ("%.1f" % fsize) + sizes[i]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9699
:
5034
| 5035 |
5036