Skip to content

Commit d393955

Browse files
committed
rounding fixed
1 parent 2874950 commit d393955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/tracer/src/org/graalvm/visualvm/modules/tracer/ItemValueFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public String formatValue(long value, int format) {
169169
return FORMAT.format(value);
170170
case FORMAT_UNITS:
171171
String est = value == 0 ? "" : "~";
172-
return est + FORMAT.format(Math.round(value / 1024 / 1024));
172+
return est + FORMAT.format(Math.round(value / 1024.0 / 1024.0));
173173
default:
174174
return null;
175175
}

0 commit comments

Comments
 (0)