From 18f5ed2ef4d058407e591cdfa7736ddd298415a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=81=D0=BE=D0=B4=D0=B6=D0=B8=D1=80=D0=BE=20=D0=BA=D0=BE?= =?UTF-8?q?=D1=8F=D0=BC=D0=B0?= Date: Fri, 15 Dec 2023 03:15:23 +0300 Subject: [PATCH] fix: const name from RbTrace to RBTrace --- lib/rbtrace/rbtracer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtrace/rbtracer.rb b/lib/rbtrace/rbtracer.rb index a672d9b..b85a663 100644 --- a/lib/rbtrace/rbtracer.rb +++ b/lib/rbtrace/rbtracer.rb @@ -323,7 +323,7 @@ def send_cmd(*cmd) msg = cmd.to_msgpack # A message is null-terminated, but bytesize gives the unterminated # length. - if msg.bytesize >= RbTrace::BUF_SIZE + if msg.bytesize >= RBTrace::BUF_SIZE raise ArgumentError, "command is too long (#{msg.bytesize}B >= #{MsgQ::EventMsg::BUF_SIZE}B)" end MsgQ::EventMsg.send_cmd(@qo, msg)