summaryrefslogtreecommitdiffstats
path: root/src/map/if/ifTime.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-07-04 15:23:51 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2017-07-04 15:23:51 -0700
commit859e769f22195ba971de037c883c0d8552459fe7 (patch)
treed8ce1204cc1a42820d388f4dd62843aeba320c28 /src/map/if/ifTime.c
parentbf6a053c648576c1e5493f2d5390eb78b2e3df1c (diff)
downloadabc-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.c6
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;