diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-22 14:19:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-22 14:19:05 +0000 |
commit | a93baa4383ab6288c4659d232345116e6b31f66a (patch) | |
tree | 827cc9b72eaca2f4e34e06d448fe3e6117ce834f /cpukit/posix/src/clockgetres.c | |
parent | 2001-01-22 Radzislaw Galler <rgaller@et.put.poznan.pl> (diff) | |
download | rtems-a93baa4383ab6288c4659d232345116e6b31f66a.tar.bz2 |
2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/clockgetres.c: Fixed match problem. We are not converting
an interval to a timespec -- it is actually a real number of
microseconds.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/clockgetres.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/posix/src/clockgetres.c b/cpukit/posix/src/clockgetres.c index 2cea196372..8881fb9048 100644 --- a/cpukit/posix/src/clockgetres.c +++ b/cpukit/posix/src/clockgetres.c @@ -36,8 +36,11 @@ int clock_getres( case CLOCK_REALTIME: case CLOCK_PROCESS_CPUTIME: case CLOCK_THREAD_CPUTIME: - if ( res ) - _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res ); + if ( res ) { + res->tv_sec = _TOD_Microseconds_per_tick / 1000000; + res->tv_nsec = _TOD_Microseconds_per_tick * 1000; + /* _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res ); */ + } break; default: |