1
0
Fork 0

A more clarified comment for inotifyCount const.

This commit is contained in:
Alexander Andreev 2022-05-25 19:18:57 +04:00
parent 7e689438ae
commit b243c375e0
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 4 additions and 2 deletions

View File

@ -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 {