changeset 52850 | f527b24990d7 |
parent 52334 | a181612f0715 |
child 52901 | 3ba9ff4d4aaf |
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/Utils.java Wed Dec 05 09:34:01 2018 -0500 +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/Utils.java Wed Dec 05 16:40:12 2018 +0100 @@ -102,6 +102,9 @@ } public static String formatBytes(long bytes, String separation) { + if (bytes == 1) { + return "1 byte"; + } if (bytes < 1024) { return bytes + " bytes"; }