Skip to content

Commit 1da8c01

Browse files
author
TheBestPessimist
committed
use more suggestive name
1 parent 1a8339e commit 1da8c01

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private static string ToReadableSize(long pDrvSize, int pi)
145145
{
146146
int mok = 0;
147147
double drvSize = pDrvSize;
148-
string space = "Byte";
148+
string uom = "Byte"; // Unit Of Measurement
149149

150150
while (drvSize > 1024.0)
151151
{
@@ -154,23 +154,23 @@ private static string ToReadableSize(long pDrvSize, int pi)
154154
}
155155

156156
if (mok == 1)
157-
space = "KB";
157+
uom = "KB";
158158
else if (mok == 2)
159-
space = " MB";
159+
uom = " MB";
160160
else if (mok == 3)
161-
space = " GB";
161+
uom = " GB";
162162
else if (mok == 4)
163-
space = " TB";
163+
uom = " TB";
164164

165-
var returnStr = $"{Convert.ToInt32(drvSize)}{space}";
165+
var returnStr = $"{Convert.ToInt32(drvSize)}{uom}";
166166
if (mok != 0)
167167
{
168168
returnStr = pi switch
169169
{
170-
1 => $"{drvSize:F1}{space}",
171-
2 => $"{drvSize:F2}{space}",
172-
3 => $"{drvSize:F3}{space}",
173-
_ => $"{Convert.ToInt32(drvSize)}{space}"
170+
1 => $"{drvSize:F1}{uom}",
171+
2 => $"{drvSize:F2}{uom}",
172+
3 => $"{drvSize:F3}{uom}",
173+
_ => $"{Convert.ToInt32(drvSize)}{uom}"
174174
};
175175
}
176176

0 commit comments

Comments
 (0)