From 62a6e4e3eb7a328e07c49fe28cd7afc77af9800a Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Wed, 2 May 2018 09:54:50 -0400 Subject: [PATCH] Add missing parens --- .../sleuthkit/autopsy/healthmonitor/TimingMetricGraphPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/healthmonitor/TimingMetricGraphPanel.java b/Core/src/org/sleuthkit/autopsy/healthmonitor/TimingMetricGraphPanel.java index 0e0b63b7a5..907be0df96 100644 --- a/Core/src/org/sleuthkit/autopsy/healthmonitor/TimingMetricGraphPanel.java +++ b/Core/src/org/sleuthkit/autopsy/healthmonitor/TimingMetricGraphPanel.java @@ -563,7 +563,7 @@ class TimingMetricGraphPanel extends JPanel { */ double getXGivenY(double y) throws HealthMonitorException { if (slope != 0.0) { - return (y - yInt / slope); + return ((y - yInt) / slope); } else { throw new HealthMonitorException("Attempted division by zero in trend line calculation"); }