summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/buildstats.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index 599a219984..415d2ee820 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -31,6 +31,11 @@ def get_process_cputime(pid):
31 i = f.readline().strip() 31 i = f.readline().strip()
32 if not i: 32 if not i:
33 break 33 break
34 if not ":" in i:
35 # one more extra line is appended (empty or containing "0")
36 # most probably due to race condition in kernel while
37 # updating IO stats
38 break
34 i = i.split(": ") 39 i = i.split(": ")
35 iostats[i[0]] = i[1] 40 iostats[i[0]] = i[1]
36 resources = resource.getrusage(resource.RUSAGE_SELF) 41 resources = resource.getrusage(resource.RUSAGE_SELF)