From 6debd169dac0e3d66189db889d64277e90212a14 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 19 Nov 2018 13:13:23 +0100 Subject: [PATCH] Do not clear unbound stats when querying them --- src/opnsense/scripts/unbound/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/unbound/wrapper.py b/src/opnsense/scripts/unbound/wrapper.py index 1d5605afe..be353e0a6 100755 --- a/src/opnsense/scripts/unbound/wrapper.py +++ b/src/opnsense/scripts/unbound/wrapper.py @@ -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':