jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: No need to round an integer
Date Sat, 10 Apr 2021 18:12:22 GMT
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 <felix.schumacher@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);

Mime
View raw message