Bug 39558

Summary: Divide by zero exception at graph.java:drawSample() line 209
Product: JMeter - Now in Github Reporter: Mark Sechrest <msechres>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P2    
Version: 2.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Mark Sechrest 2006-05-11 12:50:37 UTC
I am trying to view a saved results file in the Graph listener. graphMax is
getting set to zero, which causes the exception.

in updateGui(), model.getPercentPoint() gets called. If the first sample is a
zero, this call returns a zero. Then in the ensuing if statement(line 164), the
condition graphMax > (h * 1.2) is true, which means graphMax gets set to zero.

I suggest ANDing the entire if condition with (h > 0), so that graphMax can't
get set to zero.
Comment 1 Mark Sechrest 2006-05-11 12:54:08 UTC

*** This bug has been marked as a duplicate of 38234 ***
Comment 2 The ASF infrastructure team 2022-09-24 20:37:37 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1720