This commit is contained in:
chacha
2026-02-27 21:44:24 +00:00
parent a0faa8661d
commit 496f032734
7 changed files with 1262 additions and 1015 deletions

View File

@@ -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)