diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-15 05:00:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-15 05:00:36 +0200 |
| commit | afe5b7a802592acb1942c606832bc36510810038 (patch) | |
| tree | c4d58d7b2ef545465687c21c149e88bc207cc363 /Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs | |
| parent | 96fe20a20e7c107473cefeda3b06950955952bec (diff) | |
| download | Tango-afe5b7a802592acb1942c606832bc36510810038.tar.gz Tango-afe5b7a802592acb1942c606832bc36510810038.zip | |
Started integration of Tango.FileSystem to FSE.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs index 5a2975535..d26ea5a0a 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Converters/ByteArrayToFileSizeConverter.cs @@ -39,7 +39,7 @@ namespace Tango.SharedUI.Converters long bytes = Math.Abs(byteCount); int place = System.Convert.ToInt32(Math.Floor(Math.Log(bytes, 1024))); double num = Math.Round(bytes / Math.Pow(1024, place), 1); - return (Math.Sign(byteCount) * num).ToString() + suf[place]; + return (Math.Sign(byteCount) * num).ToString() + " " + suf[place]; } } } |
