Fix setting remaining time lower than minInterval

When a minimum interval is specified, setting the remaining time should
also honor the setting and keep the initial remaining time (initial
countdown in IPMI terms) at a mimimal interval values.

Tested: see next patch for unit tests

Resolves: openbmc/phosphor-watchdog#1

Signed-off-by: Kun Yi <kunyi731@gmail.com>
Change-Id: I1f5d244bb7b0985227344a3634e3b7c4da2624fc
1 file changed