Refactor and code cleanup.

This commit is contained in:
2016-07-28 22:25:26 +01:00
parent c93d469da9
commit a63ba13b6b
199 changed files with 3614 additions and 3744 deletions

View File

@@ -92,7 +92,7 @@ namespace DiscImageChef.Devices.Linux
sense |= (io_hdr.info & SgInfo.OkMask) != SgInfo.Ok;
if(io_hdr.duration > 0)
duration = (double)io_hdr.duration;
duration = io_hdr.duration;
else
duration = (end - start).TotalMilliseconds;
@@ -335,7 +335,7 @@ namespace DiscImageChef.Devices.Linux
if(Interop.DetectOS.Is64Bit())
{
long result64 = Extern.readlink64(path, buf, (long)4096);
long result64 = Extern.readlink64(path, buf, 4096);
if(result64 <= 0)
return null;