From 3556bb1c9783a0c2957b92c4c5e90a3f7f388cad Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sat, 16 May 2015 10:38:24 +0200 Subject: [PATCH] Only collect SD statistics from native SDs. It makes no sense to try collecting statistics from NDMP storage devices as we have no support for that. --- src/dird/stats.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dird/stats.c b/src/dird/stats.c index 9df0df8d109..de90fee502e 100644 --- a/src/dird/stats.c +++ b/src/dird/stats.c @@ -210,6 +210,14 @@ void *statistics_thread_runner(void *arg) continue; } + switch (store->Protocol) { + case APT_NATIVE: + break; + default: + UnlockRes(); + continue; + } + /* * Try connecting 2 times with a max time to wait of 1 seconds. * We don't want to lock the resources to long. And as the stored