tidy&format(all): all files formatted and relevant warnings resolved
C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s

This commit is contained in:
2026-06-30 02:04:24 +02:00
parent fed9372b35
commit 467e44bb9f
85 changed files with 4139 additions and 3738 deletions
+5 -5
View File
@@ -16,18 +16,18 @@ namespace ZShell::services::usagefmt {
FormatResult UsageFmt::formatKib(qreal kib, qreal total) const {
if (!finitePositive(kib) || !finitePositive(total)) {
return { 0.0, 0.0, "KiB" };
return {0.0, 0.0, "KiB"};
}
if (total >= kGib) {
return { kib / kGib, total / kGib, "TiB" };
return {kib / kGib, total / kGib, "TiB"};
}
if (total >= kMib) {
return { kib / kMib, total / kMib, "GiB" };
return {kib / kMib, total / kMib, "GiB"};
}
if (total >= kKib) {
return { kib / kKib, total / kKib, "MiB" };
return {kib / kKib, total / kKib, "MiB"};
}
return { kib, total, "KiB" };
return {kib, total, "KiB"};
}
} // namespace ZShell::services::usagefmt