mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-26 08:52:11 +00:00
I've always wondered, when you first view all the drives, why drives above 999GB appeared in their GB nomenclature instead of TB. For instance a 2TB drive would appear as 2000GB. Unlike other places in nwipe that does a proper job of describing capacity just this one location in the program was wrong. This information was obtained by a call to a function in libparted. Maybe when libparted was written there was no such thing as a TByte drive ?? Who knows, so anyway it was far easier to use nwipes build in function called 'determine_C_B_nomenclature()' This provides us with the correct nomenclature that is a fixed number of digits (three) and prefixed with spaces so the length is always the same. In the GUI this gives a nice list when viewing multiple drives that appears in neat columns.