-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for multipart driver versions when checking compatibility
This fixes a bug where `nvfancontrol` expects the driver version to always be in the format "XXX.YY". This is true for stable releases but beta and experimental drivers usually have a third part "XXX.YY.ZZ" which would lead to a crash when trying to parse it into a float. This is now addressed by splitting the driver version on the dots "." and keeping only the first two parts (or "00" if only one part is found).
- Loading branch information
Showing
1 changed file
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters