jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [wireless-sd/] [makerrd] - Blame information for rev 36

 

Line No. Rev Author Line
135simandl#!/usr/bin/env sh
2 
3. ../../settings
4 
5DEV=$1
6MAX=$2
7 
8SECS=`date +%s`
9 
10MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11 
12if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else
13 
14 echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX]
15 
16 $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \
17 DS:freq:GAUGE:300:U:$MAX \
18 DS:power:GAUGE:300:U:$MAX \
19 DS:signal:GAUGE:300:U:$MAX \
20 DS:temp:GAUGE:300:U:$MAX \
21 DS:snr:GAUGE:300:U:$MAX \
22 DS:qam:GAUGE:300:U:$MAX \
23 DS:noise:GAUGE:300:U:$MAX \
24 RRA:AVERAGE:0:1:720 \
25 RRA:AVERAGE:0.3:6:2880 \
26 RRA:AVERAGE:0.3:60:2016 \
27 RRA:AVERAGE:0.3:360:1488 \
28 RRA:AVERAGE:0.3:4320:1460 \
29 RRA:MAX:0.3:6:2880 \
30 RRA:MAX:0.3:60:2016 \
31 RRA:MAX:0.3:360:1488 \
32 RRA:MAX:0.3:4320:1460
33 fi

Powered by WebSVN 2.2.1