diff options
author | Junling Zheng <zhengjunling@huawei.com> | 2020-06-03 15:38:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:32 +0100 |
commit | 373c2637c31218b094dff60254ead7f977bc0e6e (patch) | |
tree | 1235c83c7a3544aed83a1f4403951ad6f7655b1e /meta | |
parent | 388250a48f02093ca85a9b20e7ca4f31ebf606bc (diff) | |
download | poky-373c2637c31218b094dff60254ead7f977bc0e6e.tar.gz |
buildstats.bbclass: Do not recalculate build start time
The build start time is recorded in __timedata_build, which we should
use rather than recalculating it.
(From OE-Core rev: b723e9a4de67f33f61f2e7fe36ea451a46840b3e)
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/buildstats.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index e7d47c74df..6f87187233 100644 --- a/meta/classes/buildstats.bbclass +++ b/meta/classes/buildstats.bbclass | |||
@@ -136,7 +136,7 @@ python run_buildstats () { | |||
136 | if x: | 136 | if x: |
137 | f.write(x + " ") | 137 | f.write(x + " ") |
138 | f.write("\n") | 138 | f.write("\n") |
139 | f.write("Build Started: %0.2f \n" % time.time()) | 139 | f.write("Build Started: %0.2f \n" % d.getVar('__timedata_build', False)[0]) |
140 | 140 | ||
141 | elif isinstance(e, bb.event.BuildCompleted): | 141 | elif isinstance(e, bb.event.BuildCompleted): |
142 | build_time = os.path.join(bsdir, "build_stats") | 142 | build_time = os.path.join(bsdir, "build_stats") |