2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Update LogMonitor.cs

fix minor spelling error
This commit is contained in:
Xjph 2021-07-21 08:33:45 -02:30 committed by GitHub
parent 13fecfa395
commit 51c9dc6c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,10 +42,10 @@ namespace Observatory
public void Start()
{
if (firstStarMonitor)
if (firstStartMonitor)
{
// Only pre-read on first start monitor. Beyond that it's simply pause/resume.
firstStarMonitor = false;
firstStartMonitor = false;
PrereadJournals();
}
journalWatcher.EnableRaisingEvents = true;
@ -86,7 +86,7 @@ namespace Observatory
public void ReadAllJournals(string path)
{
// Prevent pre-reading when starting monitoring after reading all.
firstStarMonitor = false;
firstStartMonitor = false;
readall = true;
DirectoryInfo logDirectory = GetJournalFolder(path);
var files = logDirectory.GetFiles("Journal.????????????.??.log");
@ -167,7 +167,7 @@ namespace Observatory
private Dictionary<string, int> currentLine;
private bool monitoring = false;
private bool readall = false;
private bool firstStarMonitor = true;
private bool firstStartMonitor = true;
#endregion