Review request: 7129308 Handle OperatingSystemMXBean.getSystemLoadAverage() output on macosx

Michael McMahon michael.x.mcmahon at oracle.com
Tue Jan 17 03:29:56 PST 2012


On 17/01/12 11:27, Michael McMahon wrote:
> What is the implication of stripping the space?
>
Never mind. I didn't notice that this was a test. So long as it passes 
on all platforms
then it should be fine.

- Michael.

> 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