diff options
Diffstat (limited to 'c/src/exec/posix/src')
-rw-r--r-- | c/src/exec/posix/src/time.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/exec/posix/src/time.c b/c/src/exec/posix/src/time.c index acb4b507b1..a14eb71f8e 100644 --- a/c/src/exec/posix/src/time.c +++ b/c/src/exec/posix/src/time.c @@ -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 |