mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
2002-08-07 Chris Johns <ccj@acm.org>
* src/coretodset.c: Correct calculation of ticks until next section boundary. It was incorrectly based upon current time not the time that is being set.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2002-08-07 Chris Johns <ccj@acm.org>
|
||||
|
||||
* src/coretodset.c: Correct calculation of ticks until next section
|
||||
boundary. It was incorrectly based upon current time not the
|
||||
time that is being set.
|
||||
|
||||
2002-07-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* src/Makefile.am: Build into libscore.a.
|
||||
|
||||
@@ -50,8 +50,8 @@ void _TOD_Set(
|
||||
seconds_since_epoch - _TOD_Seconds_since_epoch );
|
||||
|
||||
ticks_until_next_second = _TOD_Ticks_per_second;
|
||||
if ( ticks_until_next_second > _TOD_Current.ticks )
|
||||
ticks_until_next_second -= _TOD_Current.ticks;
|
||||
if ( ticks_until_next_second > the_tod->ticks )
|
||||
ticks_until_next_second -= the_tod->ticks;
|
||||
|
||||
_TOD_Current = *the_tod;
|
||||
_TOD_Seconds_since_epoch = seconds_since_epoch;
|
||||
|
||||
Reference in New Issue
Block a user