@cryptotaxi247 / netdata-1 / commits / b746703f6

fixed graph size calculation when ignoring interfaces

Costa Tsaousis (ktsaou) committed Oct 22, 2013 at 12:54 UTC b746703f63a1b67747acd7a6cea4f14177877a1f
1 file changed +11 -6
netdata.start
+11 -6
@@ -76,6 +76,11 @@ else
76 echo >&2 "Directory $base/data already exists. Not touching it, however it should be a link '${data}'."
77 fi
78
79 +if [ -f all.config ]
80 +then
81 + source all.config
82 +fi
83 +
84 echo "Finding proper parameters for dashboard..."
85
86 # count all JSON files
@@ -83,7 +88,12 @@ all=`ls "${data}" | grep .json$ | sed "s/\.json$//g"`
88 count=0
89 for x in $all
90 do
86 - count=$[count + 1]
91 + y=`echo "$x" | tr "-" "_"`
92 + eval "t=\${NETDATA_PRIORITY_${y}}"
93 + if [ ! "$t" = "IGNORE" ]
94 + then
95 + count=$[count + 1]
96 + fi
97 done
98
99 # find the optimal graphs per page
@@ -151,11 +161,6 @@ cat >all.html <<EOF
161 // EDIT: --------------------------------------------------------------------------------
162 EOF
163
154 -if [ -f all.config ]
155 -then
156 - source all.config
157 -fi
158 -
164 for x in $all
165 do
166 y=`echo "$x" | tr "-" "_"`