From 2dbdbea604bb139a8e5ad279bbe0d8d3e924fb22 Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Sat, 18 Feb 2017 07:12:35 +0800 Subject: 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 --- android/scripts/boottime2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android') 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" -- cgit v1.2.3