diff --git a/hystrix-contrib/hystrix-metrics-event-stream/src/main/java/com/netflix/hystrix/contrib/metrics/eventstream/HystrixMetricsStreamServlet.java b/hystrix-contrib/hystrix-metrics-event-stream/src/main/java/com/netflix/hystrix/contrib/metrics/eventstream/HystrixMetricsStreamServlet.java index 25513cf9b..eb798eb06 100644 --- a/hystrix-contrib/hystrix-metrics-event-stream/src/main/java/com/netflix/hystrix/contrib/metrics/eventstream/HystrixMetricsStreamServlet.java +++ b/hystrix-contrib/hystrix-metrics-event-stream/src/main/java/com/netflix/hystrix/contrib/metrics/eventstream/HystrixMetricsStreamServlet.java @@ -124,7 +124,7 @@ private void handleRequest(HttpServletRequest request, HttpServletResponse respo try { String d = request.getParameter("delay"); if (d != null) { - delay = Integer.parseInt(d); + delay = Math.max(Integer.parseInt(d), 1); } } catch (Exception e) { // ignore if it's not a number