mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Allow writing to Greaseweazle disks again by not setting hardSectorThresholdNs
to inf...
This commit is contained in:
@@ -83,9 +83,12 @@ void measureDiskRotation()
|
||||
|
||||
if (!globalConfig()->drive().hard_sector_threshold_ns())
|
||||
{
|
||||
int count = globalConfig()->drive().hard_sector_count();
|
||||
globalConfig().setTransient("drive.hard_sector_threshold_ns",
|
||||
std::to_string(oneRevolution * 3 /
|
||||
(4 * globalConfig()->drive().hard_sector_count())));
|
||||
count ? std::to_string(
|
||||
oneRevolution * 3 /
|
||||
(4 * globalConfig()->drive().hard_sector_count()))
|
||||
: "0");
|
||||
}
|
||||
|
||||
if (oneRevolution == 0)
|
||||
|
||||
Reference in New Issue
Block a user