Skip to content

Commit

Permalink
Fix #125, Adds JSC 2.1 Static Analysis comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfiguer authored and jdfiguer committed Jun 10, 2024
1 parent 0bdc746 commit 825ac8d
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 825ac8d

Please sign in to comment.