chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f82066a
)
svc/connect.in: Make `failures' info value be a string.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 20 Sep 2021 14:06:39 +0000
(15:06 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/svc/connect.in
b/svc/connect.in
index 268ad5fc023e6ea53da9a3f1afe556066fad6dca..25c80b0fcc620ebe1d43d00a6d135acfc64f9889 100644
(file)
--- a/
svc/connect.in
+++ b/
svc/connect.in
@@
-526,7
+526,7
@@
class PingPeer (object):
'min-ping': '%.1fms' % me._min,
'max-ping': '%.1fms' % me._max,
'state': me._timer and 'idle' or 'check',
'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):
@T._callback
def _time(me):