Skip to content

Commit

Permalink
chore: go back to fsnotiyold
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers authored and dengbo11 committed Sep 14, 2023
1 parent 7530d9e commit ffa0616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/power1/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (m *Manager) initFsWatcher() {
for {
select {
case event, ok := <-watcher.Events:
if !ok || !event.Has(fsnotify.Write) {
if !ok || event.Op&fsnotify.Write != fsnotify.Write {
continue
}
if (m.hasPstate && strings.HasSuffix(event.Name, "energy_performance_preference")) || strings.HasSuffix(event.Name, "scaling_governor") {
Expand Down

0 comments on commit ffa0616

Please sign in to comment.