diff --git a/AddInManager/ViewModel/LogControlViewModel.cs b/AddInManager/ViewModel/LogControlViewModel.cs index 6cf02d4..0aa97de 100644 --- a/AddInManager/ViewModel/LogControlViewModel.cs +++ b/AddInManager/ViewModel/LogControlViewModel.cs @@ -83,8 +83,9 @@ public void UserControl_Unloaded(object sender, RoutedEventArgs e) public void LogFileWatcher(object sender, RoutedEventArgs e) { _startLineTotal = GetTotalLinesInFile(LongFileName, ref _lastFileSize); - if (_startLineTotal == 0) return; - try { _lastFileSize = _lastFileSize - (_lastFileSize / _startLineTotal * MAX_MESSGAES); } catch (Exception) { _lastFileSize = 0; } + // if (_startLineTotal == 0) return; + try { _lastFileSize = _lastFileSize - (_lastFileSize / _startLineTotal * MAX_MESSGAES); } + catch (Exception) { _lastFileSize = 0; } if (_lastFileSize < 0) _lastFileSize = 0; StopWatching = false; WatchLogFile(LongFileName);