[chronojump] Finally fixed missing repetitions on realtime capture on plotbars



commit 9d17fcf935bc8028e37285ceb9488bb94cbc4d38
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Feb 16 19:08:35 2017 +0100

    Finally fixed missing repetitions on realtime capture on plotbars

 src/gui/encoder.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 2de3d6d..4798221 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4989,8 +4989,6 @@ public partial class ChronoJumpWindow
                        StreamReader reader = File.OpenText(filename);
                        line = reader.ReadLine(); //just read first line
                        reader.Close();
-                       
-                       encoderCaptureReadedLines ++;
                }
                catch {
                        LogB.Debug("catched - open later",encoderCaptureReadedLines.ToString());
@@ -5003,6 +5001,9 @@ public partial class ChronoJumpWindow
                //if (!String.IsNullOrEmpty(curveFromR.Data))
                if (!String.IsNullOrEmpty(line))
                {
+                       //only mark as readed now because line it's not empty
+                       encoderCaptureReadedLines ++;
+
                        LogB.Information("Without trim");
                        //LogB.Information(curveFromR.Data);
                        LogB.Information(line);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]