This commit is contained in:
2020-07-01 23:41:35 +00:00
parent ac74b3b186
commit 97c5733c4a
6 changed files with 39 additions and 38 deletions

View File

@@ -581,32 +581,32 @@ namespace AyaNova.Util
double readable;
if (absolute_i >= 0x1000000000000000) // Exabyte
{
suffix = "EB";
suffix = "EiB";
readable = (i >> 50);
}
else if (absolute_i >= 0x4000000000000) // Petabyte
{
suffix = "PB";
suffix = "PiB";
readable = (i >> 40);
}
else if (absolute_i >= 0x10000000000) // Terabyte
{
suffix = "TB";
suffix = "TiB";
readable = (i >> 30);
}
else if (absolute_i >= 0x40000000) // Gigabyte
{
suffix = "GB";
suffix = "GiB";
readable = (i >> 20);
}
else if (absolute_i >= 0x100000) // Megabyte
{
suffix = "MB";
suffix = "MiB";
readable = (i >> 10);
}
else if (absolute_i >= 0x400) // Kilobyte
{
suffix = "KB";
suffix = "KiB";
readable = i;
}
else