svc/connect.in: Make `failures' info value be a string.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 20 Sep 2021 14:06:39 +0000 (15:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 20 Sep 2021 14:06:39 +0000 (15:06 +0100)
Otherwise we choke when presenting it for the `info' command.

svc/connect.in

index 268ad5f..25c80b0 100644 (file)
@@ -526,7 +526,7 @@ class PingPeer (object):
              'min-ping': '%.1fms' % me._min,
              'max-ping': '%.1fms' % me._max,
              'state': me._timer and 'idle' or 'check',
-             'failures': me._failures }
+             'failures': str(me._failures) }
 
   @T._callback
   def _time(me):