diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-12-22 16:06:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-22 16:15:31 +0000 |
commit | 8e2475eecafc0161d25684f5b8239273739de759 (patch) | |
tree | f6f0520ec18cbaf6a50d8f62b431a51fe00de0f8 /meta/classes | |
parent | cad52140997e86c6fee4938369dfce21767f1a63 (diff) | |
download | openembedded-core-8e2475eecafc0161d25684f5b8239273739de759.tar.gz openembedded-core-8e2475eecafc0161d25684f5b8239273739de759.tar.bz2 openembedded-core-8e2475eecafc0161d25684f5b8239273739de759.zip |
toaster.bbclass: fix TypeError when parsing build stats
Reading IO stats fails because the IO read/write bytes are
being converted to strings, then added to a numeric running
total.
Fix this by converting IO stats to integers.
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toaster.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 4fb52a969e..bbda2f8433 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass @@ -212,10 +212,10 @@ python toaster_collect_task_stats() { cpu_usage = str(statinfo["CPU usage"]).strip('% \n\r') if "IO write_bytes" in statinfo: - disk_io = disk_io + str(statinfo["IO write_bytes"]).strip('% \n\r') + disk_io = disk_io + int(statinfo["IO write_bytes"].strip('% \n\r')) if "IO read_bytes" in statinfo: - disk_io = disk_io + str(statinfo["IO read_bytes"]).strip('% \n\r') + disk_io = disk_io + int(statinfo["IO read_bytes"].strip('% \n\r')) if "Started" in statinfo: started = str(statinfo["Started"]).strip('% \n\r') |