~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svc/connect.in: Only check the configuration database once a minute.
[tripe]
/
svc
/
connect.in
diff --git
a/svc/connect.in
b/svc/connect.in
index
000ca50
..
8abe108
100644
(file)
--- a/
svc/connect.in
+++ b/
svc/connect.in
@@
-127,7
+127,7
@@
class ErrorWatch (T.Coroutine):
def dbwatch():
"""
def dbwatch():
"""
- Coroutine function: wake up every
second
and notice changes to the
+ Coroutine function: wake up every
minute
and notice changes to the
database. When a change happens, tell the Pinger (q.v.) to rescan its
peers.
"""
database. When a change happens, tell the Pinger (q.v.) to rescan its
peers.
"""
@@
-135,7
+135,7
@@
def dbwatch():
main = cr.parent
fw = M.FWatch(opts.cdb)
while True:
main = cr.parent
fw = M.FWatch(opts.cdb)
while True:
- timer = M.SelTimer(time() +
1
, lambda: cr.switch())
+ timer = M.SelTimer(time() +
60
, lambda: cr.switch())
main.switch()
if fw.update():
pinger.rescan(False)
main.switch()
if fw.update():
pinger.rescan(False)