diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-08-07 15:03:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-08-07 15:03:52 +0000 |
commit | 41c4785ba67b93d22c78be9610a826816b46ff8b (patch) | |
tree | 5def5c4cf97d7c730bad9efbde0714c804fd2787 /cpukit/score/src/coretodset.c | |
parent | e3368828603fcced2b880969f83fd1a9f72f4050 (diff) |
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.
Diffstat (limited to 'cpukit/score/src/coretodset.c')
-rw-r--r-- | cpukit/score/src/coretodset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index ddb6f8ee43..9480a6ead9 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -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; |