mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Removed unneeded value sets.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
ushort currentProfile = 0x0001;
|
||||
AtaErrorRegistersCHS errorChs;
|
||||
uint timeout = 5;
|
||||
double duration = 0;
|
||||
double duration;
|
||||
|
||||
sense = dev.AtaIdentify(out cmdBuf, out errorChs);
|
||||
if(!sense && Identify.Decode(cmdBuf).HasValue)
|
||||
@@ -108,14 +108,14 @@ namespace DiscImageChef.Core.Devices.Scanning
|
||||
results.SeekTotal = 0;
|
||||
const int SEEK_TIMES = 1000;
|
||||
|
||||
double seekCur = 0;
|
||||
double seekCur;
|
||||
|
||||
Random rnd = new Random();
|
||||
|
||||
uint seekPos = (uint)rnd.Next((int)results.Blocks);
|
||||
ushort seekCy = (ushort)rnd.Next(cylinders);
|
||||
byte seekHd = (byte)rnd.Next(heads);
|
||||
byte seekSc = (byte)rnd.Next(sectors);
|
||||
uint seekPos;
|
||||
ushort seekCy;
|
||||
byte seekHd;
|
||||
byte seekSc;
|
||||
|
||||
aborted = false;
|
||||
System.Console.CancelKeyPress += (sender, e) => { e.Cancel = aborted = true; };
|
||||
|
||||
Reference in New Issue
Block a user