Skip to content

Commit 73df041

Browse files
committed
comutation of FORMAT_UNITS fixed
1 parent 348f7f9 commit 73df041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/libs.profiler/profiler.snaptracer/src/org/graalvm/visualvm/lib/profiler/snaptracer/ItemValueFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public String formatValue(long value, int format) {
181181
return FORMAT.format(value);
182182
case FORMAT_UNITS:
183183
String est = value == 0 ? "" : "~";
184-
return est + FORMAT.format(Math.round(value / 1024 / 1024));
184+
return est + FORMAT.format(Math.round((double)value / 1024 / 1024));
185185
default:
186186
return null;
187187
}

0 commit comments

Comments
 (0)