Review request: 7129308 Handle OperatingSystemMXBean.getSystemLoadAverage() output on macosx (original) (raw)
Jason Uh jason.uh at oracle.com
Wed Jan 11 17:25:29 PST 2012
- Previous message: Can't log onto wiki
- Next message: Review request: 7129308 Handle OperatingSystemMXBean.getSystemLoadAverage() output on macosx
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Can't log onto wiki
- Next message: Review request: 7129308 Handle OperatingSystemMXBean.getSystemLoadAverage() output on macosx
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]