diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-02-18 07:12:35 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-02-18 07:12:35 +0800 |
commit | 2dbdbea604bb139a8e5ad279bbe0d8d3e924fb22 (patch) | |
tree | e09e7f90b10384e1780367773de77abb997bddd1 | |
parent | ed2f1e26103f0d07c7ba815aea8eb1784ca5d458 (diff) |
android boottime2: fix problem on the boot time caluation
no need to divide the ANDROID_BOOT_TIME and SURFACEFLINGER_BOOT_TIME
by 1000 now, since their unit is seconds
Change-Id: Iee13fcbd2ec5b495c1f2b5731fa282f7bf8258e8
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | android/scripts/boottime2.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/scripts/boottime2.sh b/android/scripts/boottime2.sh index 4d1a08e..95a2511 100755 --- a/android/scripts/boottime2.sh +++ b/android/scripts/boottime2.sh @@ -171,7 +171,7 @@ getBootTimeInfoFromDmesg(){ if [ ! -z "${INIT_TO_SURFACEFLINGER_START_TIME}" ] && [ ! -z "${SURFACEFLINGER_BOOT_TIME}" ] ; then - ANDROID_BOOT_TIME=$(echo "${INIT_TO_SURFACEFLINGER_START_TIME} ${SURFACEFLINGER_BOOT_TIME}" | awk '{printf "%.3f",$1 + $2/1000;}') + ANDROID_BOOT_TIME=$(echo "${INIT_TO_SURFACEFLINGER_START_TIME} ${SURFACEFLINGER_BOOT_TIME}" | awk '{printf "%.3f",$1 + $2;}') output_test_result "ANDROID_BOOT_TIME" "pass" "${ANDROID_BOOT_TIME}" "s" else output_test_result "ANDROID_BOOT_TIME" "fail" "-1" "s" @@ -187,7 +187,7 @@ getBootTimeInfoFromDmesg(){ fi if [ ! -z "${KERNEL_BOOT_TIME}" ] && [ ! -z "${ANDROID_BOOT_TIME}" ] ; then - TOTAL_SECONDS=$(echo "${KERNEL_BOOT_TIME} ${ANDROID_BOOT_TIME}" | awk '{printf "%.3f",$1 + $2/1000;}') + TOTAL_SECONDS=$(echo "${KERNEL_BOOT_TIME} ${ANDROID_BOOT_TIME}" | awk '{printf "%.3f",$1 + $2;}') output_test_result "TOTAL_BOOT_TIME" "pass" "${TOTAL_SECONDS}" "s" else output_test_result "TOTAL_BOOT_TIME" "fail" "-1" "s" |