mirror of
https://github.com/DominicBreuker/pspy.git
synced 2026-11-06 18:21:51 +00:00
restructure inotify package and add some tests
This commit is contained in:
1 parent
d59ec7f1a8
commit
dd123848f2
16 files changed
+315
-166
No files matched your search
@@ -17,6 +17,11 @@ func NewProcfsScanner() *ProcfsScanner {
|
||||
|
||||
func (p *ProcfsScanner) Setup(triggerCh chan struct{}, interval time.Duration) (chan string, error) {
|
||||
psEventCh := make(chan string)
|
||||
go func() {
|
||||
for {
|
||||
<-triggerCh
|
||||
}
|
||||
}()
|
||||
return psEventCh, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user