sh: Fix overflow problem in get_ticks