summaryrefslogtreecommitdiff
path: root/perf/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'perf/ruby')
-rw-r--r--perf/ruby/local_thr.rb2
-rw-r--r--perf/ruby/remote_thr.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/perf/ruby/local_thr.rb b/perf/ruby/local_thr.rb
index 4d9357b..117e54b 100644
--- a/perf/ruby/local_thr.rb
+++ b/perf/ruby/local_thr.rb
@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
-s = Socket.new(ctx, SUB);
+s = Socket.new(ctx, P2P);
s.bind(bind_to);
msg = s.recv(0)
diff --git a/perf/ruby/remote_thr.rb b/perf/ruby/remote_thr.rb
index 7d55f86..8d98848 100644
--- a/perf/ruby/remote_thr.rb
+++ b/perf/ruby/remote_thr.rb
@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
-s = Socket.new(ctx, PUB);
+s = Socket.new(ctx, P2P);
s.connect(connect_to);
msg = "#{'0'*message_size}"