mirror of https://github.com/Aidaho12/haproxy-wi
Merge pull request #30 from cclauss/patch-1
Initialize oldstat at the top of the functionpull/42/head
commit
cf372cc176
|
@ -22,6 +22,7 @@ def main(serv, port):
|
||||||
port = str(port)
|
port = str(port)
|
||||||
firstrun = True
|
firstrun = True
|
||||||
currentstat = []
|
currentstat = []
|
||||||
|
oldstat = []
|
||||||
readstats = ""
|
readstats = ""
|
||||||
killer = GracefulKiller()
|
killer = GracefulKiller()
|
||||||
old_stat_service = ""
|
old_stat_service = ""
|
||||||
|
@ -101,4 +102,4 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
main(args.IP, args.port)
|
main(args.IP, args.port)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue