Skip to content

Commit

Permalink
Update v6.1.3
Browse files Browse the repository at this point in the history
Fixed issue with firstSequence in MTConnectObservationBuffer class
  • Loading branch information
PatrickRitchie committed Mar 15, 2024
1 parent 0936f47 commit 971f101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;

[assembly: AssemblyVersion("6.1.2")]
[assembly: AssemblyFileVersion("6.1.2")]
[assembly: AssemblyVersion("6.1.3")]
[assembly: AssemblyFileVersion("6.1.3")]
[assembly: AssemblyCompany("TrakHound Inc.")]
[assembly: AssemblyCopyright("Copyright (c) 2024 TrakHound Inc., All Rights Reserved.")]
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public IObservationBufferResults GetCurrentObservations(IEnumerable<int> bufferK

lock (_lock)
{
firstSequence = Math.Max(1, _sequence - BufferSize);
firstSequence = _sequence > BufferSize ? _sequence - BufferSize : 1;
lastSequence = _sequence > 1 ? _sequence - 1 : 1;
nextSequence = _sequence;

Expand Down

0 comments on commit 971f101

Please sign in to comment.