mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 03:34:50 +00:00
restructure inotify package and add some tests
This commit is contained in:
@@ -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