RFR: 8223697: jfr tool can't format duration values greater than 1 minute
    Chihiro Ito 
    chiroito107 at gmail.com
       
    Wed Oct  2 13:43:23 UTC 2019
    
    
  
Hi Erik,
I think we should use Duration instead of fixing the expression.
Also, the if statement using s is complex, so I simplified it for each unit.
You wrote on JBS as follows, but if I modify only the expression, 1234.567
seconds will be output as 1234.0. Is this correct?
For example, Duration.ofMillis (1234567) economies "34.567. s" instead of
"1234.567 s"
Over 1000 seconds, 0.1 seconds is too small. Therefore, I think even ".0"
is not necessary.
Regards,
Chihiro
2019年9月27日(金) 18:32 Erik Gahlin <erik.gahlin at oracle.com>:
> Hi Chihiro,
>
> The bug seems to be that:
>
> double s = d.toNanosPart() / 1000_000_000.0 + d.toSecondsPart();
>
> should be:
>
> double s = d.toNanosPart() / 1000_000_000.0 + d.toSeconds();
>
> The other changes is not strictly necessary. Is that correct?
>
> Thanks
> Erik
>
> > Hi,
> >
> > Can anyone review this?
> >
> > JBS https://bugs.openjdk.java.net/browse/JDK-8223697
> > webrev http://cr.openjdk.java.net/~cito/JDK-8223697/webrev.00/
> >
> > Regards,
> > Chihiro
> >
> >
> > 2019年9月14日(土) 0:06 Chihiro Ito <chiroito107 at gmail.com>:
> >
> >> Hi,
> >>
> >> Could you review this tiny change, please?
> >>
> >> http://cr.openjdk.java.net/~cito/JDK-8223697/webrev.00/
> >>
> >> Regards,
> >> Chihiro
> >>
>
>
    
    
More information about the hotspot-jfr-dev
mailing list