Skip to content

Commit

Permalink
Merge pull request #434 from ros-visualization/fix_buffer_length
Browse files Browse the repository at this point in the history
fix buffer length
  • Loading branch information
dirk-thomas committed Feb 22, 2017
2 parents 0329582 + b922db5 commit c7780f5
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 c7780f5

Please sign in to comment.