Skip to content

Commit

Permalink
GSF.TimeSeries: Track adapter index during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Jan 21, 2025
1 parent 681d767 commit 5a481ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ private void InitializeChildAdapters()
}

// Create child adapter for provided inputs to the parent bulk collection-based adapter
for (int i = 0; i < inputMeasurementKeys.Length; i += inputsPerAdapter)
for (int i = 0, adapterIndex = 0; i < inputMeasurementKeys.Length; i += inputsPerAdapter, adapterIndex++)
{
CurrentAdapterIndex = adapters.Count;
CurrentAdapterIndex = adapterIndex;
inputsPerAdapter = PerAdapterInputCount;

Guid[] inputs = new Guid[inputsPerAdapter];
Expand Down

0 comments on commit 5a481ed

Please sign in to comment.