fix for #1134 Files size incorrect when less than 1000 bytes

This commit is contained in:
Leigh Pointer 2021-02-25 07:44:19 +01:00
parent 53af3f2a14
commit 6c79006dd7

View File

@ -42,7 +42,7 @@
<td><a href="@(ContentUrl(context.FileId))" target="_new">@context.Name</a></td>
<td>@context.ModifiedOn</td>
<td>@context.Extension.ToUpper() @Localizer["File"]</td>
<td>@(context.Size / 1000) KB</td>
<td>@string.Format("{0:0.00}", ((decimal)context.Size / 1000)) KB</td>
</Row>
</Pager>
@if (_files.Count == 0)