I read this in the README:
When running in an hypervisor with SSD disks, detection is not accurate.
I guess you are trying to detect if there are SSD disks and then you have a boolean flag.
Why do you do it this way?
Why not check the performance of the disk and set the values according the this value (float value, not boolean)?