* [PATCH 0/1] classes/buildhistory: actually use KiB in extensible SDK sizes files
@ 2016-01-05 3:43 Paul Eggleton
2016-01-05 3:43 ` [PATCH 1/1] " Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2016-01-05 3:43 UTC (permalink / raw)
To: openembedded-core
Fix a minor mistake in my recent buildhistory extensible SDK changes.
The following changes since commit 1568f4fa1c8f8abd9b365ecd264841cd4f6b66b1:
bluez5: include the patch only for 5.36 (2015-12-28 13:02:03 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/buildhistory-sdk-kib
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/buildhistory-sdk-kib
Paul Eggleton (1):
classes/buildhistory: actually use KiB in extensible SDK sizes files
meta/classes/buildhistory.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.5.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] classes/buildhistory: actually use KiB in extensible SDK sizes files
2016-01-05 3:43 [PATCH 0/1] classes/buildhistory: actually use KiB in extensible SDK sizes files Paul Eggleton
@ 2016-01-05 3:43 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2016-01-05 3:43 UTC (permalink / raw)
To: openembedded-core
I was using bytes here for the sizes and writing out KiB as the suffix.
Change it to actually write out size values in KiB.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/buildhistory.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 943c8d7..4153e58 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -531,13 +531,14 @@ END
python buildhistory_get_extra_sdkinfo() {
import operator
+ import math
if d.getVar('BB_CURRENTTASK', True) == 'populate_sdk_ext':
tasksizes = {}
filesizes = {}
for root, _, files in os.walk('${SDK_OUTPUT}/${SDKPATH}/sstate-cache'):
for fn in files:
if fn.endswith('.tgz'):
- fsize = os.path.getsize(os.path.join(root, fn))
+ fsize = int(math.ceil(float(os.path.getsize(os.path.join(root, fn))) / 1024))
task = fn.rsplit(':', 1)[1].split('_', 1)[1].split('.')[0]
origtotal = tasksizes.get(task, 0)
tasksizes[task] = origtotal + fsize
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-05 3:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-05 3:43 [PATCH 0/1] classes/buildhistory: actually use KiB in extensible SDK sizes files Paul Eggleton
2016-01-05 3:43 ` [PATCH 1/1] " Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.