Skip to content

Commit

Permalink
[BISERVER-15155] - File size in KB is calculated through division by …
Browse files Browse the repository at this point in the history
…1000 instead of 1024
  • Loading branch information
joana-fb committed Nov 25, 2024
1 parent ced697c commit 3c4cb96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void init() {
locationLabel
.setText( isInTrash
? Messages.getString( "recycleBin" ) : fileSummary.getPath().substring( 0, fileSummary.getPath().lastIndexOf( "/" ) ) ); //$NON-NLS-1$//$NON-NLS-2$
sizeLabel.setText( NumberFormat.getDecimalFormat().format( fileSummary.getFileSize() / 1000.00 )
sizeLabel.setText( NumberFormat.getDecimalFormat().format( fileSummary.getFileSize() / 1024.00 )
+ " " + Messages.getString( "kiloBytes" ) ); //$NON-NLS-1$ //$NON-NLS-2$\
DateTimeFormat df = DateTimeFormat.getFormat( DateTimeFormat.PredefinedFormat.DATE_TIME_FULL );
createdLabel.setText( df.format( fileSummary.getCreatedDate() ) );
Expand Down

0 comments on commit 3c4cb96

Please sign in to comment.