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:
Joel Sherrill
2002-08-07 15:03:52 +00:00
parent e336882860
commit 41c4785ba6
2 changed files with 8 additions and 2 deletions

View File

@@ -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.

View File

@@ -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;