[Feature Request] Display bytes in MB/GB as well in media info #396

Open
opened 2026-01-29 15:17:57 +00:00 by claunia · 0 comments
Owner

Originally created by @TheRogueArchivist on GitHub (Apr 11, 2020).

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Description

Instead of giving the byte total in just bytes, it should display it in MB or GB as well. For example, instead of "Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes)", "Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes/47.72 GB)".

Exact command line used:

dotnet aaru.dll m info /dev/sr1

Output of command execution with debug output enabled

aaru 5.1.99.2880-124f7c8b built by silas-All-Series in Debug, modified
Copyright © 2011-2020 Natalia Portillo

Uploading statistics
Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes)
Blu-ray Disc Information:
DI Unit Sequence: 0
DI Unit Format: 0x01
There are 2 per block
This DI refers to layer 0
This DI starts a new unit
DI Unit is 32 bytes
Disc type identifier: "BDO"
Disc size: 120mm
Disc class: 0
Disc version: 1
This disc has 2 layers
This disc does not contain a DVD layer.
This disc does not contain a CD layer.
Disc uses a 74.5nm channel giving 25 Gb per layer.
Disc uses unknown polarity with code 3
Disc doesn't have a BCA.
Disc does not specify a maximum transfer rate.
Last user data PSN for disc: 32196543
First address unit number of data zone in this layer: 1048576
Last address unit number of data zone in this layer: 12853918
Blu-ray DI Unit format dependent contents as hex follows:Offset   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
000010   00 00 00 00 00 00 00 00 00 00 00 00 00 7E 37 00   .............~7.


Media Serial Number: 000000000000000000000000
Media identified as BDROM
Originally created by @TheRogueArchivist on GitHub (Apr 11, 2020). ### Prerequisites * [X] Are you running the latest version? * [X] Can you reproduce the problem in the debug version? ### Description Instead of giving the byte total in just bytes, it should display it in MB or GB as well. For example, instead of "Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes)", "Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes/47.72 GB)". ### Exact command line used: `dotnet aaru.dll m info /dev/sr1` ### Output of command execution with debug output enabled ``` aaru 5.1.99.2880-124f7c8b built by silas-All-Series in Debug, modified Copyright © 2011-2020 Natalia Portillo Uploading statistics Media has 23301376 blocks of 2048 bytes/each. (for a total of 47721218048 bytes) Blu-ray Disc Information: DI Unit Sequence: 0 DI Unit Format: 0x01 There are 2 per block This DI refers to layer 0 This DI starts a new unit DI Unit is 32 bytes Disc type identifier: "BDO" Disc size: 120mm Disc class: 0 Disc version: 1 This disc has 2 layers This disc does not contain a DVD layer. This disc does not contain a CD layer. Disc uses a 74.5nm channel giving 25 Gb per layer. Disc uses unknown polarity with code 3 Disc doesn't have a BCA. Disc does not specify a maximum transfer rate. Last user data PSN for disc: 32196543 First address unit number of data zone in this layer: 1048576 Last address unit number of data zone in this layer: 12853918 Blu-ray DI Unit format dependent contents as hex follows:Offset 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000010 00 00 00 00 00 00 00 00 00 00 00 00 00 7E 37 00 .............~7. Media Serial Number: 000000000000000000000000 Media identified as BDROM ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#396