From 74aa84d51a798e682de0848116d3b53c11692811 Mon Sep 17 00:00:00 2001 From: Samuel Smith Date: Thu, 14 Jan 2016 22:59:15 -0600 Subject: [PATCH] Remove unneeded sort Parsed data is already sorted. --- plugins/network/tc_ | 2 +- plugins/network/tc_drops_ | 2 +- plugins/network/tc_packets_ | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/network/tc_ b/plugins/network/tc_ index eadd5280..46c38b65 100755 --- a/plugins/network/tc_ +++ b/plugins/network/tc_ @@ -43,7 +43,7 @@ case $1 in ;; config) - echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 }' | sort -n | tr "\n" " "`" + echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 }' | tr "\n" " "`" echo "graph_title $DEVICE TC traffic" echo 'graph_args --base 1000' echo 'graph_vlabel bits per ${graph_period}' diff --git a/plugins/network/tc_drops_ b/plugins/network/tc_drops_ index f93aa60e..72d088e0 100755 --- a/plugins/network/tc_drops_ +++ b/plugins/network/tc_drops_ @@ -43,7 +43,7 @@ case $1 in ;; config) - echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_drops" }' | sort -n | tr "\n" " "`" + echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_drops" }' | tr "\n" " "`" echo "graph_title $DEVICE TC traffic drops" echo 'graph_args --base 1000' echo 'graph_vlabel bits per ${graph_period}' diff --git a/plugins/network/tc_packets_ b/plugins/network/tc_packets_ index c64712a0..fc08bafa 100755 --- a/plugins/network/tc_packets_ +++ b/plugins/network/tc_packets_ @@ -43,7 +43,7 @@ case $1 in ;; config) - echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_packets" }' | sort -n | tr "\n" " "`" + echo "graph_order `mytc $DEVICE | awk '{ print $2 "_" $3 "_packets" }' | tr "\n" " "`" echo "graph_title $DEVICE TC traffic packets" echo 'graph_args --base 1000' echo 'graph_vlabel bits per ${graph_period}'