File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Search Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ private static string ToReadableSize(long pDrvSize, int pi)
145
145
{
146
146
int mok = 0 ;
147
147
double drvSize = pDrvSize ;
148
- string space = "Byte" ;
148
+ string uom = "Byte" ; // Unit Of Measurement
149
149
150
150
while ( drvSize > 1024.0 )
151
151
{
@@ -154,23 +154,23 @@ private static string ToReadableSize(long pDrvSize, int pi)
154
154
}
155
155
156
156
if ( mok == 1 )
157
- space = "KB" ;
157
+ uom = "KB" ;
158
158
else if ( mok == 2 )
159
- space = " MB" ;
159
+ uom = " MB" ;
160
160
else if ( mok == 3 )
161
- space = " GB" ;
161
+ uom = " GB" ;
162
162
else if ( mok == 4 )
163
- space = " TB" ;
163
+ uom = " TB" ;
164
164
165
- var returnStr = $ "{ Convert . ToInt32 ( drvSize ) } { space } ";
165
+ var returnStr = $ "{ Convert . ToInt32 ( drvSize ) } { uom } ";
166
166
if ( mok != 0 )
167
167
{
168
168
returnStr = pi switch
169
169
{
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 } "
174
174
} ;
175
175
}
176
176
You can’t perform that action at this time.
0 commit comments