add config support for HISTORY POINTS in charts
Costa Tsaousis (ktsaou) committed
Oct 22, 2013 at 17:23 UTC
9651fd344fb5b677ec98d504c6bea068851b5164
1 file changed
+2
-1
netdata.start
+2
-1
@@ -11,6 +11,7 @@ fi
11
cd "$base" || exit 1
12
13
NETDATA_UPDATE_EVERY=1
14
+NETDATA_HISTORY_POINTS=60
15
if [ -f all.config ]
16
then
17
source all.config
@@ -63,7 +64,7 @@ echo "Compiling netdata"
64
gcc -O3 -o netdata netdata.c || exit 1
65
66
echo "Starting netdata"
66
-./netdata -d -u $NETDATA_UPDATE_EVERY -l $[60*NETDATA_UPDATE_EVERY] -o "${data}" || exit 1
67
+./netdata -d -u $NETDATA_UPDATE_EVERY -l $NETDATA_HISTORY_POINTS -o "${data}" || exit 1
68
69
echo "Waiting 2 seconds for the JSON files"
70
# wait 2 seconds for the JSON files to be generated