mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 07:20:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user