If the specified time period is less than a clock tick, then

it is arbitrarily assumed to be 1 clock tick.
This commit is contained in:
Joel Sherrill
1997-10-05 16:26:04 +00:00
parent 8959fccf62
commit e8ee2f324c
2 changed files with 8 additions and 2 deletions

View File

@@ -62,7 +62,10 @@ Watchdog_Interval _POSIX_Timespec_to_interval(
ticks += (time->tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND) /
_TOD_Microseconds_per_tick;
return ticks;
if (ticks)
return ticks;
return 1;
}
/*PAGE