Fix infinite collection bug in mysql

This commit is contained in:
Clint Byrum 2015-10-27 10:12:27 +09:00
parent 2723df20d4
commit 0dd75da8d4
1 changed files with 1 additions and 1 deletions

View File

@ -59,8 +59,8 @@ def collect():
conn = pymysql.connect(**args)
cursor = conn.cursor()
counters = {}
cursor.execute('show global status')
while True:
cursor.execute('show global status')
result = cursor.fetchone()
if result is None:
break