Human-readable values for data written/read attributes#847
Conversation
Modified getAttributeValue to show human readable file sizes for ATA IDs 241, 242 (LBAs read & write) and NVMe (data_units_written, data_units_read) attributes using FileSizePipe. This makes it easier to understand the actual amount written and read to a drive. E.g. "Total LBAs Written" will now show "1953125000 [1.0 TB]" instead of just "1953125000"
Added attribute 241 with SMART data in two locations within the sdb mock device.
|
@kaysond 1. Absolutely, I used VS Code Copilot with a Gemini 3 Pro agent for the majority of these changes and to identify where exactly it needed to be implemented. I felt that for the simplicity of this commit, this was easy and acceptable. And I did test this on two separate machines to verify that my changes functioned and displayed correctly. |
Thanks. We can leave this one open. Feel free to ping me when you're ready for review |
This small PR adds a human-readable data size in brackets next to the SMART attributes related to data written/read. This makes it a bit easier to understand the amount of data written/read on a drive and mirrors the format
smartctluses in their reporting as well.Before:

After:

AI Summary: