node_manager_fkie: fix round floats in echo dialog
@@ -694,7 +694,6 @@ class EchoDialog(QDialog):
:param field_filter: filter the fields that are strified for Messages, ``fn(Message)->iter(str)``
:returns: string (YAML) representation of message, ``str``
"""
-
type_ = type(val)
if type_ in (int, long, float) and fixed_numeric_width is not None:
if type_ is float:
@@ -754,7 +753,7 @@ class EchoDialog(QDialog):
slot_name = f
if isinstance(cval, (list, tuple)):
slot_name = "%s[%d]" % (f, len(cval))
- slots.append(p % (utf8(slot_name), self.strify_message(utf8(cval), ni, time_offset, current_time, field_filter, fixed_numeric_width)))
+ slots.append(p % (utf8(slot_name), self.strify_message(cval, ni, time_offset, current_time, field_filter, fixed_numeric_width)))
vals = '\n'.join(slots)
if indent:
return '\n' + vals
