From 3c4cb9640d02e1e6d7c97f7e628bd0edba5a3fd6 Mon Sep 17 00:00:00 2001 From: joana-fb <132680682+joana-fb@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:43:15 +0000 Subject: [PATCH] [BISERVER-15155] - File size in KB is calculated through division by 1000 instead of 1024 --- .../client/solutionbrowser/fileproperties/GeneralPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user-console/src/main/java/org/pentaho/mantle/client/solutionbrowser/fileproperties/GeneralPanel.java b/user-console/src/main/java/org/pentaho/mantle/client/solutionbrowser/fileproperties/GeneralPanel.java index c399937ed8..71a945c51f 100644 --- a/user-console/src/main/java/org/pentaho/mantle/client/solutionbrowser/fileproperties/GeneralPanel.java +++ b/user-console/src/main/java/org/pentaho/mantle/client/solutionbrowser/fileproperties/GeneralPanel.java @@ -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() ) );