fix typos
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# $Id: hbd,v 1.19 2010/08/21 12:19:22 andreas Exp $
|
# $Id: hbd,v 1.20 2010/08/21 12:23:51 andreas Exp $
|
||||||
# Wait for heartbeat messages and act on them (or their absence)
|
# Wait for heartbeat messages and act on them (or their absence)
|
||||||
#
|
#
|
||||||
import time, os, string, sys, socket, atexit, select, SocketServer, getopt, signal, cPickle
|
import time, os, string, sys, socket, atexit, select, SocketServer, getopt, signal, cPickle
|
||||||
@@ -58,7 +58,7 @@ class Host:
|
|||||||
|
|
||||||
def __init__(self, name, addr):
|
def __init__(self, name, addr):
|
||||||
global num
|
global num
|
||||||
self.name=shotname(name)
|
self.name=shortname(name)
|
||||||
self.addr=addr
|
self.addr=addr
|
||||||
self.num=num
|
self.num=num
|
||||||
self.lastbeat=time.time()
|
self.lastbeat=time.time()
|
||||||
@@ -312,7 +312,7 @@ def readsock():
|
|||||||
elif key == 'interval':
|
elif key == 'interval':
|
||||||
interval=int(val)
|
interval=int(val)
|
||||||
elif key == 'name':
|
elif key == 'name':
|
||||||
name=sortname(val)
|
name=shortname(val)
|
||||||
elif key == 'msg':
|
elif key == 'msg':
|
||||||
msg=val
|
msg=val
|
||||||
elif key == 'service':
|
elif key == 'service':
|
||||||
|
|||||||
Reference in New Issue
Block a user