A more clarified comment for inotifyCount const.
This commit is contained in:
parent
7e689438ae
commit
b243c375e0
@ -11,8 +11,10 @@ import (
|
||||
const CrDelMask uint32 = syscall.IN_CREATE | syscall.IN_DELETE
|
||||
|
||||
// inotifyCount is amount of InotifyEvent structures
|
||||
// we read in WatchForMask(). 16 was chosen experimentally,
|
||||
// with lesser amount events are often missing.
|
||||
// we read in WatchForMask(). 16 was chosen experimentally.
|
||||
// Use of sparse files (with preoccupied space using Seek())
|
||||
// allows us to have a little buffer. With smaller number
|
||||
// events are often missing.
|
||||
const inotifyCount = 16
|
||||
|
||||
type InotifyWatcher struct {
|
||||
|
Loading…
Reference in New Issue
Block a user