View | Details | Raw Unified | Return to bug 144602
Collapse All | Expand All

(-)files/patch-plugins__node.d__colour_tester.in (+11 lines)
Added Link Here
1
--- ./plugins/node.d/colour_tester.in.orig	2010-03-09 22:23:28.000000000 +0100
2
+++ ./plugins/node.d/colour_tester.in	2010-03-09 22:23:46.000000000 +0100
3
@@ -29,7 +29,7 @@ NUMCOL=$(($I - 1))
4
 
5
 
6
 do_ () { # Fetch
7
-   for I in $(seq 1 $NUMCOL); do
8
+   for I in $(jot - 1 $NUMCOL); do
9
        echo "l$I.value $I"
10
    done
11
 }
(-)files/patch-plugins__node.d__squeezebox_.in (+38 lines)
Added Link Here
1
--- ./plugins/node.d/squeezebox_.in.orig	2010-03-09 22:23:57.000000000 +0100
2
+++ ./plugins/node.d/squeezebox_.in	2010-03-09 22:24:16.000000000 +0100
3
@@ -157,7 +157,7 @@ if [ "$CMD" = "years" ]; then
4
 		# echo "graph_order y0"
5
 		echo -n "graph_order y"; echo $years_array | sed 's/ / y/g'
6
 
7
-		for i in `seq 0 $no_of_years`; do
8
+		for i in `jot - 0 $no_of_years`; do
9
 			year=$(echo ${arr1[$i]})
10
 			if [ $year = 0 ]; then
11
 				echo y0.label No year
12
@@ -172,7 +172,7 @@ if [ "$CMD" = "years" ]; then
13
 		done
14
 		exit 0
15
 	fi 
16
-	for i in `seq 0 $no_of_years`; do
17
+	for i in `jot - 0 $no_of_years`; do
18
 		year=$(echo ${arr1[$i]})
19
 		echo -n "y${year}.value "
20
 		printf "%b" "albums 0 0 year:${year}\nexit\n" | $NC $HOST $PORT | sed 's/%3A/:/g' | cut -d ':' -f 3
21
@@ -183,7 +183,7 @@ elif [ "$CMD" = "signalstrength" -o "$CM
22
             echo "graph_category Squeezebox"
23
             COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
24
             (( COUNT-- ))
25
-            for ID in $(seq 0 $COUNT); do
26
+            for ID in $(jot - 0 $COUNT); do
27
                 MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
28
 		NAME=$(printf "%b" "player name $MAC ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%20/ /g')
29
 		MAC2=$(echo $MAC | sed 's/://g; s/\./_/g')
30
@@ -193,7 +193,7 @@ elif [ "$CMD" = "signalstrength" -o "$CM
31
         fi
32
         COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
33
         (( COUNT-- ))
34
-        for ID in $(seq 0 $COUNT); do
35
+        for ID in $(jot - 0 $COUNT); do
36
             MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
37
             VAL=$(printf "%b" "$MAC $CMD ?\nexit\n"| $NC $HOST $PORT | cut -d " " -f 2- | sed "s/$CMD //")
38
             MAC2=$(echo $MAC| sed 's/://g')

Return to bug 144602