mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-07-31 17:38:33 +00:00
Add the size to the "No transforms" message as it is used in selecting them.
Example: No transforms for: text/plain (5.4 KB) -> application/pdf language=French
This commit is contained in:
@@ -322,7 +322,7 @@ public class TransformerDebug
|
||||
return String.format("%,d ms", time);
|
||||
}
|
||||
|
||||
private String fileSize(long size)
|
||||
public static String fileSize(long size)
|
||||
{
|
||||
if (size < 0)
|
||||
{
|
||||
@@ -346,7 +346,7 @@ public class TransformerDebug
|
||||
return fileSizeFormat(size, divider, units[units.length-1]);
|
||||
}
|
||||
|
||||
private String fileSizeFormat(long size, long divider, String unit)
|
||||
private static String fileSizeFormat(long size, long divider, String unit)
|
||||
{
|
||||
size = size * 10 / divider;
|
||||
int decimalPoint = (int) size % 10;
|
||||
|
Reference in New Issue
Block a user