Skip to content

Commit

Permalink
fix buffer length
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Feb 20, 2017
1 parent 852d3b4 commit b922db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqt_topic/src/rqt_topic/topic_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def message_callback(self, message):
# time consuming workaround...
buff = StringIO()
message.serialize(buff)
self.sizes.append(buff.len)
self.sizes.append(len(buff.getvalue()))

if len(self.timestamps) > self.window_size - 1:
self.timestamps.pop(0)
Expand Down

0 comments on commit b922db5

Please sign in to comment.