clear cache button

This commit is contained in:
mertalev
2026-01-23 02:06:20 -05:00
parent 15c9eb12a8
commit 3555021173
9 changed files with 229 additions and 23 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ String formatBytes(int bytes) {
String formatHumanReadableBytes(int bytes, int decimals) {
if (bytes <= 0) return "0 B";
const suffixes = ["B", "KB", "MB", "GB", "TB"];
const suffixes = ["B", "KiB", "MiB", "GiB", "TiB"];
var i = (log(bytes) / log(1024)).floor();
return '${(bytes / pow(1024, i)).toStringAsFixed(decimals)} ${suffixes[i]}';
}