You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2021/04/10 18:12:22 UTC
[jmeter] branch master updated: No need to round an integer
This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new 4b834be No need to round an integer
4b834be is described below
commit 4b834be91b39a2b70569bb4b930b1eb4d3bcaedf
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sat Apr 10 20:11:35 2021 +0200
No need to round an integer
Part of: HTTP Sampler/Files upload tab - add missing buttons
Bugzilla Id: 65020
---
.../src/main/java/org/apache/jmeter/config/gui/RowDetailDialog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/src/main/java/org/apache/jmeter/config/gui/RowDetailDialog.java b/src/core/src/main/java/org/apache/jmeter/config/gui/RowDetailDialog.java
index 2e73dab..f5b68c0 100644
--- a/src/core/src/main/java/org/apache/jmeter/config/gui/RowDetailDialog.java
+++ b/src/core/src/main/java/org/apache/jmeter/config/gui/RowDetailDialog.java
@@ -137,7 +137,7 @@ public class RowDetailDialog extends JDialog implements ActionListener, Document
dataComponents = new ArrayList<>();
final int columnCount = tableModel.getColumnCount();
- final int linesPerTextArea = Math.max(5, Math.round(30 / Math.max(columnCount - 1, 1)));
+ final int linesPerTextArea = Math.max(5, 30 / Math.max(columnCount - 1, 1));
for (int column = 0; column < columnCount; column++) {
JLabel dataLabel = new JLabel(JMeterUtils.getResString(tableModel.getColumnName(column)));
dataPanel.add(dataLabel);