Merge branch 'master' of git.wrede.ca:andreas/heartbeat

sequence
This commit is contained in:
2017-09-01 13:08:32 -04:00
+12 -5
View File
@@ -824,14 +824,21 @@ except:
if f:
while 1:
l = f.readline()
if len(l) == 0:
ls = f.readline()
if len(ls) == 0:
break
l = ls[:-1].strip()
if len(l) == 0 or l[0] == "#":
continue
if verbose:
print " %s" % l[:-1]
r = l[:-1].split('=')
print " %s" % l
r = l.split('=')
o = r[0].strip()
a = eval(r[1].strip())
try:
a = eval(r[1].strip())
except Exception as e:
print "error: %s" % str(r)
sys.exit(1)
if o == 'interval':
interval = a
elif o == 'grace':