Jinjinov / Usb.Events

Subscribe to the Inserted and Removed events to be notified when a USB drive is plugged in or unplugged, or when a USB device is connected or disconnected. Usb.Events is a .NET Standard 2.0 library and uses WMI on Windows, libudev on Linux and IOKit on macOS.
MIT License
95 stars 23 forks source link

Fixes for issues 6 thru 9 and increases mass storage device poll time to reduce CPU usage #10

Closed maskimthedog closed 3 years ago

maskimthedog commented 3 years ago

This PR addresses the following issues plus increases the poll time for mass storage devices under Linux from 100 milliseconds to one second to reduce CPU usage.

https://github.com/Jinjinov/Usb.Events/issues/6 https://github.com/Jinjinov/Usb.Events/issues/7 https://github.com/Jinjinov/Usb.Events/issues/8 https://github.com/Jinjinov/Usb.Events/issues/9