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)
|
||||
firstrun = True
|
||||
currentstat = []
|
||||
oldstat = []
|
||||
readstats = ""
|
||||
killer = GracefulKiller()
|
||||
old_stat_service = ""
|
||||
|
@ -101,4 +102,4 @@ if __name__ == "__main__":
|
|||
try:
|
||||
main(args.IP, args.port)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue