Merge pull request #30 from cclauss/patch-1

Initialize oldstat at the top of the function
pull/42/head
Pavel Loginov 2018-08-11 22:47:58 +06:00 committed by GitHub
commit cf372cc176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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