watchdog: Fix rounding bug in get_sample_period()