PSI sics-cvs-psi-complete-tree-post-site-support
This commit is contained in:
20
simcter.c
20
simcter.c
@@ -84,6 +84,11 @@ static float FAILRATE;
|
||||
return HWIdle;
|
||||
}
|
||||
|
||||
if(pSim->iPause == 1)
|
||||
{
|
||||
return HWPause;
|
||||
}
|
||||
|
||||
if(SimRandom() < FAILRATE)
|
||||
{
|
||||
return HWFault;
|
||||
@@ -118,10 +123,6 @@ static float FAILRATE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(pSim->iPause == 1)
|
||||
{
|
||||
return HWPause;
|
||||
}
|
||||
return HWIdle;
|
||||
}
|
||||
}
|
||||
@@ -351,16 +352,9 @@ static float FAILRATE;
|
||||
pRes->Set = SIMSet;
|
||||
pRes->Get = SIMGet;
|
||||
pRes->Send = SIMSend;
|
||||
|
||||
pRes->KillPrivate = NULL;
|
||||
|
||||
FAILRATE = fFail;
|
||||
return pRes;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
void KillSIMCounter(pCounterDriver self)
|
||||
{
|
||||
|
||||
assert(self);
|
||||
|
||||
DeleteCounterDriver(self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user