mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add database entry for optimal count of sectors for multiple read in devices.
This commit is contained in:
@@ -344,13 +344,20 @@ namespace DiscImageChef.Core
|
||||
if(existing != null)
|
||||
{
|
||||
modifiedDevices++;
|
||||
existing = new Device(device) {Id = device.Id};
|
||||
existing = new Device(device)
|
||||
{
|
||||
Id = device.Id, OptimalMultipleSectorsRead = device.OptimalMultipleSectorsRead
|
||||
};
|
||||
mctx.Devices.Update(existing);
|
||||
}
|
||||
else
|
||||
{
|
||||
addedDevices++;
|
||||
mctx.Devices.Add(new Device(device) {Id = device.Id});
|
||||
mctx.Devices.Add(new Device(device)
|
||||
{
|
||||
Id = device.Id,
|
||||
OptimalMultipleSectorsRead = device.OptimalMultipleSectorsRead
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user