diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-08 13:27:15 +1100 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 15:31:34 -0600 |
commit | 05a617bcc2630aced6f922115d1acc0115e5aa26 (patch) | |
tree | cb83f4e27729e50eddd951a66e413d5ab6461410 /src/build | |
parent | 9dcb7a898beab758354b431552af1171af70a1e9 (diff) | |
download | talos-hostboot-05a617bcc2630aced6f922115d1acc0115e5aa26.tar.gz talos-hostboot-05a617bcc2630aced6f922115d1acc0115e5aa26.zip |
tracehash_hb.pl: use gmtime for start/end hash time
Previously, end time would come from `date` - which involves fork()/exec()
and a differently formatted date than the start time, which was from
the perl gmtime function.
As the date is used to assemble the string identifying the build, we use
gmtime() in both places rather than localtime().
Change-Id: Id5d9de2080a48af81b090cf5359d841686883a20
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Patrick Williams <iawillia@us.ibm.com>
Forwardport: yes
Github: See open-power/hostboot#39
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23181
Tested-by: Jenkins Server
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23186
Diffstat (limited to 'src/build')
-rwxr-xr-x | src/build/trace/tracehash_hb.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build/trace/tracehash_hb.pl b/src/build/trace/tracehash_hb.pl index 9163be7a5..e4cdb63bc 100755 --- a/src/build/trace/tracehash_hb.pl +++ b/src/build/trace/tracehash_hb.pl @@ -166,7 +166,7 @@ if (!$file && !$dir && !$in_sand) { # M A I N # ################################# -my $clock = gmtime; +my $clock = gmtime(); $build = $HEAD_EYE_CATCHER . "$HEAD_VER_FLAG" . $HEAD_SEP . $clock . $HEAD_SEP . $HEAD_BUILD_FLAG; @@ -232,7 +232,7 @@ else write_string_file(); print "Hashing Started at $clock\n"; -$clock = `date`; +$clock = gmtime(); print "Hashing Finished at $clock\n"; exit 0; |