rebuild geeqie
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0060-patch-jdk_test_java_lang_management_OperatingSystemMXBean_GetSystemLoadAverage.java.patch
blobec7289415e3090f0038b5c883c37d07643a63402
1 $NetBSD: patch-jdk_test_java_lang_management_OperatingSystemMXBean_GetSystemLoadAverage.java,v 1.1 2015/02/08 08:41:25 tnn Exp $
3 Test fixes.
5 --- jdk/test/java/lang/management/OperatingSystemMXBean/GetSystemLoadAverage.java.orig 2015-02-02 15:37:13.000000000 +0000
6 +++ jdk/test/java/lang/management/OperatingSystemMXBean/GetSystemLoadAverage.java
7 @@ -105,6 +105,8 @@ public class GetSystemLoadAverage {
8 ? output.split(" ")
9 : output.split(",");
10 double expected = Double.parseDouble(lavg[0]);
11 + // round to value to two decimals; some OSes report more (SmartOS at least)
12 + expected = 0.01D * Math.round(expected / 0.01D);
13 double lowRange = expected * (1 - DELTA);
14 double highRange = expected * (1 + DELTA);