Files
Aaru/Aaru.Core/Devices/Scanning/ScanResults.cs

77 lines
3.4 KiB
C#
Raw Normal View History

// /***************************************************************************
2020-02-27 12:31:25 +00:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : ScanResults.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Core algorithms.
//
// --[ Description ] ----------------------------------------------------------
//
// Contains structure to store scan results.
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2020-12-31 23:08:23 +00:00
// Copyright © 2011-2021 Natalia Portillo
// ****************************************************************************/
using System.Collections.Generic;
2020-02-27 00:33:26 +00:00
namespace Aaru.Core.Devices.Scanning
{
2020-02-29 18:03:35 +00:00
/// <summary>Contains the results of a media scan</summary>
public struct ScanResults
{
2020-02-29 18:03:35 +00:00
/// <summary>Total time spent scanning</summary>
public double TotalTime;
2020-02-29 18:03:35 +00:00
/// <summary>Total time spent by the device processing commands</summary>
public double ProcessingTime;
2020-02-29 18:03:35 +00:00
/// <summary>Average scan speed</summary>
public double AvgSpeed;
2020-02-29 18:03:35 +00:00
/// <summary>Maximum scan speed burst</summary>
public double MaxSpeed;
2020-02-29 18:03:35 +00:00
/// <summary>Minimum scan speed</summary>
public double MinSpeed;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took less than 3 milliseconds to be processed</summary>
public ulong A;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took less than 10 milliseconds but more than 3 milliseconds to be processed</summary>
public ulong B;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took less than 50 milliseconds but more than 10 milliseconds to be processed</summary>
public ulong C;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took less than 150 milliseconds but more than 50 milliseconds to be processed</summary>
public ulong D;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took less than 500 milliseconds but more than 150 milliseconds to be processed</summary>
public ulong E;
2020-02-29 18:03:35 +00:00
/// <summary>Sectors that took more than 500 milliseconds to be processed</summary>
public ulong F;
2020-02-29 18:03:35 +00:00
/// <summary>List of sectors that could not be read</summary>
public List<ulong> UnreadableSectors;
2020-02-29 18:03:35 +00:00
/// <summary>Slowest seek</summary>
public double SeekMax;
2020-02-29 18:03:35 +00:00
/// <summary>Fastest seek</summary>
public double SeekMin;
2020-02-29 18:03:35 +00:00
/// <summary>Total time spent seeking</summary>
public double SeekTotal;
2020-02-29 18:03:35 +00:00
/// <summary>How many seeks have been done</summary>
public int SeekTimes;
2020-02-29 18:03:35 +00:00
/// <summary>How many blocks were scanned</summary>
public ulong Blocks;
2020-02-29 18:03:35 +00:00
/// <summary>How many blocks could not be read</summary>
public ulong Errored;
}
2017-12-19 20:33:03 +00:00
}