sxmo_suspend.sh: fix "time_start" typo

This commit is contained in:
Colin 2023-10-13 05:43:30 +00:00
parent b180adcf48
commit fcbc558de9

View File

@ -46,7 +46,7 @@ irq_start="$(cat /proc/interrupts | grep 'rtw_wifi_gpio_wakeup' | tr -s ' ' | xa
rtcwake -m mem -s "$suspend_time" || exit 1
irq_end="$(cat /proc/interrupts | grep 'rtw_wifi_gpio_wakeup' | tr -s ' ' | xargs echo | cut -d' ' -f 2)"
time_spent="$(( $(date "+%s") - start ))"
time_spent="$(( $(date "+%s") - time_start ))"
echo "suspended for $time_spent seconds. wifi IRQ count: ${irq_start} -> ${irq_end}"