mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
buildstats: Drop spurious open() call
This file is already opened a few lines previously, so drop the duplicated call. (From OE-Core rev: 4808629faa1222b31f92a3e410e06adb8e081293) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -217,7 +217,6 @@ python run_buildstats () {
|
|||||||
if timedata:
|
if timedata:
|
||||||
time, cpu = timedata
|
time, cpu = timedata
|
||||||
# write end of build and cpu used into build_time
|
# write end of build and cpu used into build_time
|
||||||
file = open(build_time, "a")
|
|
||||||
file.write("Elapsed time: %0.2f seconds \n" % (time))
|
file.write("Elapsed time: %0.2f seconds \n" % (time))
|
||||||
if cpu:
|
if cpu:
|
||||||
file.write("CPU usage: %0.1f%% \n" % cpu)
|
file.write("CPU usage: %0.1f%% \n" % cpu)
|
||||||
|
|||||||
Reference in New Issue
Block a user