Added more byte options
This commit is contained in:
@@ -173,7 +173,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||||||
|
|
||||||
public static string ByteToString(long bytes, bool addSuffix = true)
|
public static string ByteToString(long bytes, bool addSuffix = true)
|
||||||
{
|
{
|
||||||
string[] suffix = { "B", "KB", "MB", "GB", "TB" };
|
string[] suffix = { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"};
|
||||||
int i = 0;
|
int i = 0;
|
||||||
double dblSByte = bytes;
|
double dblSByte = bytes;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user