diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-08-22 14:18:42 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-08-22 14:18:42 +0100 |
commit | b7538b53155391c52167d857673007a8bc4b8b17 (patch) | |
tree | 088dd04d4b2a6bc787266f001e5a751f08cf495f /android | |
parent | 3343e1bac61e9f04fc981120799b1bb364fed32a (diff) |
android: boot time is reported in seconds
Output android boot time in seconds instead of miliseconds.
Change-Id: I9e1de722eaec614c807c24f8a70c41bfa1c4d764
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android')
-rwxr-xr-x | android/scripts/boot_time.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/scripts/boot_time.sh b/android/scripts/boot_time.sh index 6618634..79dd85f 100755 --- a/android/scripts/boot_time.sh +++ b/android/scripts/boot_time.sh @@ -75,13 +75,14 @@ output_test_result "BOOTANIM_TIME" "pass" "${BOOTANIM_TIME}" "s" TIME_INFO=$(logcat -d -s SurfaceFlinger:I|grep "Boot is finished") if [ -z "${TIME_INFO}" ]; then - output_test_result "ANDROID_BOOT_TIME" "fail" "-1" "ms" + output_test_result "ANDROID_BOOT_TIME" "fail" "-1" "s" else while echo "${TIME_INFO}"|grep -q "("; do TIME_INFO=$(echo "${TIME_INFO}"|cut -d\( -f2-) done TIME_VALUE=$(echo "${TIME_INFO}"|cut -d\ -f1) - output_test_result "ANDROID_BOOT_TIME" "pass" "${TIME_VALUE}" "ms" + ANDROID_BOOT_TIME=`echo $TIME_VALUE 1000 / p | dc" + output_test_result "ANDROID_BOOT_TIME" "pass" "${ANDROID_BOOT_TIME}" "s" fi SERVICE_START_TIME_INFO=$(dmesg |grep "healthd:"|head -n 1) |