diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-07-04 15:23:51 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-07-04 15:23:51 -0700 |
commit | 859e769f22195ba971de037c883c0d8552459fe7 (patch) | |
tree | d8ce1204cc1a42820d388f4dd62843aeba320c28 /src/map/if/ifTime.c | |
parent | bf6a053c648576c1e5493f2d5390eb78b2e3df1c (diff) | |
download | abc-859e769f22195ba971de037c883c0d8552459fe7.tar.gz abc-859e769f22195ba971de037c883c0d8552459fe7.tar.bz2 abc-859e769f22195ba971de037c883c0d8552459fe7.zip |
Synchronizing various data-structures.
Diffstat (limited to 'src/map/if/ifTime.c')
-rw-r--r-- | src/map/if/ifTime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/if/ifTime.c b/src/map/if/ifTime.c index c2ba40e8..9ceef147 100644 --- a/src/map/if/ifTime.c +++ b/src/map/if/ifTime.c @@ -315,6 +315,9 @@ void If_ManComputeRequired( If_Man_t * p ) If_ManMarkMapping( p ); if ( p->pManTim == NULL ) { + // get the global required times + p->RequiredGlo = If_ManDelayMax( p, 0 ); + // consider the case when the required times are given if ( p->pPars->pTimesReq && !p->pPars->fAreaOnly ) { @@ -340,9 +343,6 @@ void If_ManComputeRequired( If_Man_t * p ) } else { - // get the global required times - p->RequiredGlo = If_ManDelayMax( p, 0 ); - // find new delay target if ( p->pPars->nRelaxRatio && p->pPars->DelayTargetNew == 0 ) p->pPars->DelayTargetNew = p->RequiredGlo * (100.0 + p->pPars->nRelaxRatio) / 100.0; |