Skip to content

Commit

Permalink
Merge pull request #128 from chillfig/SA_jsc2_1
Browse files Browse the repository at this point in the history
Fix #125, Adds JSC 2.1 Static Analysis comments
  • Loading branch information
dzbaker authored Jun 27, 2024
2 parents 0ea03c3 + 825ac8d commit e750030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsw/src/hs_monitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ void HS_MonitorUtilization(void)
HS_AppData.CurrentCPUHoggingTime = 0;
}

/* SAD: The wrap around logic prior to index access, ensures the index stays within the bounds of the buffer */
HS_AppData.UtilizationTracker[ThisUtilIndex] = CurrentUtil;

for (UtilIndex = 0; UtilIndex < HS_UTIL_PEAK_NUM_INTERVAL; UtilIndex++)
Expand Down

0 comments on commit e750030

Please sign in to comment.