Skip to content

Commit

Permalink
Mimic behavior of the original HistoryDictionary - keep latest value for
Browse files Browse the repository at this point in the history
the given timestamp
  • Loading branch information
ilabutin committed Jun 30, 2017
1 parent 8a17736 commit f661ba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TraceEvent/TraceUtilities/HistoryDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public void Add(Address id, long startTime, T value, bool isEndRundown = false)
entry.Add(startTime, value);
count++;
}
else
{
entry[startTime] = value;
}
}
}
// TryGetValue will return the value associated with an id that was placed in the stream
Expand Down

0 comments on commit f661ba7

Please sign in to comment.