Not sure if this is intentional otherwise I'd just post a pull request - but I just noticed that pw_upload was consuming a noticable amount of CPU time for what seemed like no reason, and it turned out that's because inotify.read() is called with timeout=2, which is milliseconds.