From 947c85bff0176c0bb7b6dce796ee32bd9fa868da Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Fri, 22 May 2020 12:50:12 +0100 Subject: [PATCH] collectd: sqm_collectd: improve error handling Signed-off-by: Kevin Darbyshire-Bryant --- utils/collectd/Makefile | 2 +- utils/collectd/files/exec-scripts/sqm_collectd.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index e8a8bcfff..60bed8e91 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=collectd PKG_VERSION:=5.11.0 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://collectd.org/files/ \ diff --git a/utils/collectd/files/exec-scripts/sqm_collectd.sh b/utils/collectd/files/exec-scripts/sqm_collectd.sh index 66ba8df38..f158056e8 100755 --- a/utils/collectd/files/exec-scripts/sqm_collectd.sh +++ b/utils/collectd/files/exec-scripts/sqm_collectd.sh @@ -80,6 +80,8 @@ process_qdisc() { ifc="$1" jsn=$(tc -s -j qdisc show dev "$ifc") + [ $? ] || return + # strip leading & trailing [] jsn="${jsn#[}" ; jsn="${jsn%]}"