Closed djablonski closed 1 year ago
PR #8 should fix this
Okay, now I found the place where the transformation from nanoseconds to seconds is done. Still, the code is confusing here, as the duration is still in nanoseconds with the value of checkIntervalInSeconds
until finally used un the Start()
function.
Maybe I'm just dumb, but my debugger brought to my attention that the checkInterval that I'm using (assumed to tbe 1s) is in reality 1ns. Checking the code, I found that the
int
parametercheckIntervalInSeconds
inNewFolderWatcher
is used unchanged to initalize atime.Duration
here. This leads to a duration in nanoseconds. Same issue also applies toNewFileWatcher
here