File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorGraph.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorGraph.java | |||
Method name: void drawSample(int, MonitorModel, Graphics, MonitorModel)
|
Method name: void drawSample(int, MonitorModel, Graphics, MonitorModel)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (HEALTH) {↵ | 1 | if (LOAD) {↵ | |
2 | int hly = (int) (height - (height * (model.getHealth() / 3.0)));↵ | 2 | int ldy = (int) (height - (height * (model.getLoad() / 100.0)));↵ | |
3 | int lasty = (int) (height - (height * (last.getHealth() / 3.0)));↵ | 3 | int lastldy = (int) (height - (height * (last.getLoad() / 100.0)));↵ | |
4 | g.setColor(Color.green);↵ | 4 | g.setColor(Color.blue);↵ | |
5 | g.drawLine(lastx, lasty, xaxis, hly);↵ | 5 | g.drawLine(lastx, lastldy, xaxis, ldy);↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | if (HEALTH) |
| 26 | if (LOAD) | ||||||||||||||||
22 | int hly = (int)(height - (height * (model.getHealth() / 3.0))); |
| 27 | int ldy = (int)(height - (height * (model.getLoad() / 100.0))); | ||||||||||||||||
23 | int lasty = (int)(height - (height * (last.getHealth() / 3.0))); |
| 28 | int lastldy = (int)(height - (height * (last.getLoad() / 100.0))); | ||||||||||||||||
24 | g.setColor(Color.green); |
| 29 | g.setColor(Color.blue); | ||||||||||||||||
25 | g.drawLine(lastx, lasty, xaxis, hly); |
| 30 | g.drawLine(lastx, lastldy, xaxis, ldy); |
Row | Violation |
---|