Bug 39558 - Divide by zero exception at graph.java:drawSample() line 209
Summary: Divide by zero exception at graph.java:drawSample() line 209
Status: RESOLVED DUPLICATE of bug 38234
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.1.1
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 12:50 UTC by Mark Sechrest
Modified: 2006-05-11 05:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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