Use megabytes instead of gigabytes for size calculations internally. Change variable types to "int64_t" for megabyte calc.

Add function "getSizeTextFromMegabytes" for generating size strings where it was repeated code.
Optimize code to do less reading of reusable locale strings and read "logicalBlockSize" before reading other size parameters.
This commit is contained in:
Johnny Silverman
2025-11-03 21:54:40 +02:00
parent db93fb1194
commit 702b9c8415
2 changed files with 71 additions and 78 deletions

View File

@@ -95,4 +95,11 @@ private:
void addSmartAttributesTable(const QJsonArray &attributes);
void transformWindow();
void mousePressEvent(QMouseEvent*);
private:
QString mbSymbol;
QString gbSymbol;
QString tbSymbol;
QString pbSymbol;
QString getMbToPrettyString(const int64_t &sizeInMbI64, const int &precisionInt, const bool &useGbBool);
};