Skip to content

Commit 0450ba9

Browse files
committed
8351999: JFR: Incorrect scaling of throttled values
Reviewed-by: shade
1 parent e5666f5 commit 0450ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/settings/ThrottleSetting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void setValue(String value) {
9494
// if unit is less than 1 s, scale samples
9595
if (unit.nanos < SECONDS.nanos) {
9696
long perSecond = SECONDS.nanos / unit.nanos;
97-
samples *= Utils.multiplyOverflow(samples, perSecond, Long.MAX_VALUE);
97+
samples = Utils.multiplyOverflow(samples, perSecond, Long.MAX_VALUE);
9898
}
9999
eventType.setThrottle(samples, millis);
100100
this.value = value;

0 commit comments

Comments
 (0)