You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/03/08 16:52:00 UTC

[incubator-plc4x] branch master updated: fixed broken benchmark code

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new a994a4e  fixed broken benchmark code
a994a4e is described below

commit a994a4e6f85bcc23993b20d8392bd6911ae3a2c7
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Mar 8 17:51:57 2018 +0100

    fixed broken benchmark code
---
 .../java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java b/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
index 90fa96b..b89d776 100644
--- a/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
+++ b/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
@@ -130,7 +130,7 @@ public class ADSProtocolBenchmark {
         return AdsWriteResponse.of(
             targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
             result
-        ).getBytes();
+        ).toAmstcpPacket().getBytes();
     }
 
     private static AdsReadRequest buildAdsReadRequest() {
@@ -159,6 +159,6 @@ public class ADSProtocolBenchmark {
             targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
             result,
             data
-        ).getBytes();
+        ).toAmstcpPacket().getBytes();
     }
 }

-- 
To stop receiving notification emails like this one, please contact
sruehl@apache.org.