Do not clear unbound stats when querying them

This commit is contained in:
Michael Steenbeek 2018-11-19 13:13:23 +01:00 committed by Franco Fichtner
parent 8c52aa1964
commit 6debd169da

View File

@ -76,7 +76,7 @@ elif args.infra:
output.append(record)
elif args.stats:
output = dict()
for line in unbound_control_reader('stats'):
for line in unbound_control_reader('stats_noreset'):
full_key, value = line.split('=')
keys = full_key.split('.')
if keys[0] == 'histogram':