posix: Fix clock_gettime()

The _TOD_Get_zero_based_uptime_as_timespec() returns already the right
value.
This commit is contained in:
Sebastian Huber
2015-05-29 15:03:02 +02:00
parent aff220db7a
commit 8f6a31459c

View File

@@ -43,7 +43,6 @@ int clock_gettime(
#ifdef CLOCK_MONOTONIC
if ( clock_id == CLOCK_MONOTONIC ) {
_TOD_Get_zero_based_uptime_as_timespec( tp );
--tp->tv_sec;
return 0;
}
#endif
@@ -51,7 +50,6 @@ int clock_gettime(
#ifdef _POSIX_CPUTIME
if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {
_TOD_Get_zero_based_uptime_as_timespec( tp );
--tp->tv_sec;
return 0;
}
#endif