mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
collectd: sqm_collectd: improve error handling
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
This commit is contained in:
committed by
Kevin Darbyshire-Bryant
parent
5506decc3f
commit
947c85bff0
@@ -80,6 +80,8 @@ process_qdisc() {
|
||||
|
||||
ifc="$1"
|
||||
jsn=$(tc -s -j qdisc show dev "$ifc")
|
||||
[ $? ] || return
|
||||
|
||||
# strip leading & trailing []
|
||||
jsn="${jsn#[}" ; jsn="${jsn%]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user