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

Watchers being a little overzealous.

This commit is contained in:
Xjph 2021-06-30 08:35:18 -02:30
parent dccbae9c4b
commit 93d691a1f6

View File

@ -172,15 +172,15 @@ namespace Observatory
journalWatcher = new FileSystemWatcher(logDirectory.FullName, "Journal.????????????.??.log") journalWatcher = new FileSystemWatcher(logDirectory.FullName, "Journal.????????????.??.log")
{ {
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess | NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size |
NotifyFilters.FileName | NotifyFilters.CreationTime | NotifyFilters.DirectoryName NotifyFilters.FileName | NotifyFilters.CreationTime
}; };
journalWatcher.Changed += LogChangedEvent; journalWatcher.Changed += LogChangedEvent;
journalWatcher.Created += LogCreatedEvent; journalWatcher.Created += LogCreatedEvent;
statusWatcher = new FileSystemWatcher(logDirectory.FullName, "Status.json") statusWatcher = new FileSystemWatcher(logDirectory.FullName, "Status.json")
{ {
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size | NotifyFilters.LastAccess NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.Size
}; };
statusWatcher.Changed += StatusUpdateEvent; statusWatcher.Changed += StatusUpdateEvent;
} }