mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Humanizer to print speeds.
This commit is contained in:
@@ -44,6 +44,8 @@ using Aaru.CommonTypes.Extents;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Core.Logging;
|
||||
using Aaru.Devices;
|
||||
using Humanizer;
|
||||
using Humanizer.Bytes;
|
||||
using Track = Aaru.CommonTypes.Structs.Track;
|
||||
|
||||
namespace Aaru.Core.Devices.Dumping;
|
||||
@@ -119,8 +121,8 @@ partial class Dump
|
||||
currentSpeed > 0)
|
||||
minSpeed = currentSpeed;
|
||||
|
||||
PulseProgress?.Invoke(string.Format(Localization.Core.Reading_sector_0_at_lead_out_1_MiB_sec, i,
|
||||
currentSpeed));
|
||||
PulseProgress?.Invoke(string.Format(Localization.Core.Reading_sector_0_at_lead_out_1, i,
|
||||
ByteSize.FromMegabytes(currentSpeed).Per(_oneSecond)));
|
||||
|
||||
if(readcd)
|
||||
{
|
||||
@@ -291,8 +293,8 @@ partial class Dump
|
||||
currentSpeed > 0)
|
||||
minSpeed = currentSpeed;
|
||||
|
||||
PulseProgress?.Invoke(string.Format(Localization.Core.Reading_sector_0_at_lead_out_1_MiB_sec, i,
|
||||
currentSpeed));
|
||||
PulseProgress?.Invoke(string.Format(Localization.Core.Reading_sector_0_at_lead_out_1, i,
|
||||
ByteSize.FromMegabytes(currentSpeed).Per(_oneSecond)));
|
||||
|
||||
if(readcd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user