BigDecimal remainingValue = durationNs(remaining); if (remainingValue != null) { value = value.add(remainingValue);
private Probe getProbe(ImageConfiguration image) { if (hasHealthCheck(image)) { HealthCheckConfiguration health = image.getBuildConfiguration().getHealthCheck(); return new ProbeBuilder() .withExec(new ExecAction(health.getCmd().asStrings())) .withTimeoutSeconds(durationSeconds(health.getTimeout())) .withPeriodSeconds(durationSeconds(health.getInterval())) .withFailureThreshold(health.getRetries()) .build(); } return null; }
private Probe getProbe(ImageConfiguration image) { if (hasHealthCheck(image)) { HealthCheckConfiguration health = image.getBuildConfiguration().getHealthCheck(); return new ProbeBuilder() .withExec(new ExecAction(health.getCmd().asStrings())) .withTimeoutSeconds(durationSeconds(health.getTimeout())) .withPeriodSeconds(durationSeconds(health.getInterval())) .withFailureThreshold(health.getRetries()) .build(); } return null; }
BigDecimal remainingValue = durationNs(remaining); if (remainingValue != null) { value = value.add(remainingValue);