mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
collectd: sqm_collectd: improve error handling
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(cherry picked from commit 947c85bff0)
This commit is contained in:
committed by
Hannu Nyman
parent
f89580290c
commit
9a38e786f8
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=collectd
|
PKG_NAME:=collectd
|
||||||
PKG_VERSION:=5.11.0
|
PKG_VERSION:=5.11.0
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://collectd.org/files/ \
|
PKG_SOURCE_URL:=https://collectd.org/files/ \
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ process_qdisc() {
|
|||||||
|
|
||||||
ifc="$1"
|
ifc="$1"
|
||||||
jsn=$(tc -s -j qdisc show dev "$ifc")
|
jsn=$(tc -s -j qdisc show dev "$ifc")
|
||||||
|
[ $? ] || return
|
||||||
|
|
||||||
# strip leading & trailing []
|
# strip leading & trailing []
|
||||||
jsn="${jsn#[}" ; jsn="${jsn%]}"
|
jsn="${jsn#[}" ; jsn="${jsn%]}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user