.
This commit is contained in:
@@ -28,7 +28,8 @@ def_sFaultSourceScoreRec ar_dFaultScores[NB_FAULT_SOURCE] =
|
||||
.szName = "VOODOO_BOARD",
|
||||
.szLoc = "Main Board",
|
||||
.eParrentFaultSource = _INVALID_FAULT_SOURCE_,
|
||||
.dScore = 0.0
|
||||
.dScore = 0.0,
|
||||
.dWeight = 1.0,
|
||||
},
|
||||
FAULT_SOURCES(GEN_FAULT_SOURCES_ARRAY)
|
||||
};
|
||||
@@ -92,6 +93,10 @@ FaultSource_Sort()
|
||||
unsigned char bSwapped = 1;
|
||||
|
||||
memcpy(ar_dFaultScores_sorted,ar_dFaultScores,sizeof(ar_dFaultScores_sorted));
|
||||
for(long eFaultSourceCurrentComp=0;
|
||||
eFaultSourceCurrentComp < (NB_FAULT_SOURCE - 1);
|
||||
eFaultSourceCurrentComp++ )
|
||||
ar_dFaultScores_sorted[eFaultSourceCurrentComp].dScore *= ar_dFaultScores_sorted[eFaultSourceCurrentComp].dWeight;
|
||||
|
||||
// shaker sort
|
||||
while(bSwapped)
|
||||
|
||||
Reference in New Issue
Block a user