Skip to content

Commit

Permalink
fix #34
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Aug 29, 2022
1 parent bac198b commit 4c41571
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AddInManager/ViewModel/LogControlViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c41571

Please sign in to comment.