Changeset 8f6a3145 in rtems


Ignore:
Timestamp:
May 29, 2015, 1:03:02 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5611839
Parents:
aff220d
git-author:
Sebastian Huber <sebastian.huber@…> (05/29/15 13:03:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/29/15 13:03:46)
Message:

posix: Fix clock_gettime()

The _TOD_Get_zero_based_uptime_as_timespec() returns already the right
value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/clockgettime.c

    raff220d r8f6a3145  
    4444  if ( clock_id == CLOCK_MONOTONIC ) {
    4545    _TOD_Get_zero_based_uptime_as_timespec( tp );
    46     --tp->tv_sec;
    4746    return 0;
    4847  }
     
    5251  if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {
    5352    _TOD_Get_zero_based_uptime_as_timespec( tp );
    54     --tp->tv_sec;
    5553    return 0;
    5654  }
Note: See TracChangeset for help on using the changeset viewer.