Review request: 7129308 Handle OperatingSystemMXBean.getSystemLoadAverage() output on macosx
Michael McMahon
michael.x.mcmahon at oracle.com
Tue Jan 17 03:27:27 PST 2012
Jason,
Good to see this one being taken care of. What is the implication of
stripping the space?
Thanks,
Michael.
On 12/01/12 01:25, Jason Uh wrote:
> Hi,
>
> This change handles the difference in the output text of
> /usr/bin/uptime on Mac OS X from that on Unix/Linux.
>
> Please see: http://cr.openjdk.java.net/~juh/7129308/webrev.00/
>
> Note that
>
> output =
> output.substring(output.lastIndexOf(LOAD_AVERAGE_TEXT) +
> - LOAD_AVERAGE_TEXT.length());
> + LOAD_AVERAGE_TEXT.length() + 1);
>
>
> serves to simply strip a space on all platforms.
>
> Thanks,
> Jason
More information about the macosx-port-dev
mailing list