File: graph1

package info (click to toggle)
rrdtool 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,772 kB
  • sloc: ansic: 39,371; sh: 1,810; perl: 1,268; cs: 652; makefile: 573; python: 169; ruby: 61; awk: 30
file content (30 lines) | stat: -rwxr-xr-x 1,113 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

. $(dirname $0)/functions

BASE=$BASEDIR/
BUILD=$BUILDDIR/

if [ -n "$MSYSTEM" ]; then
    # Avoid Windows drive letter issues in the path of DEF:vname=rrdfile under MSYS or MSYS2
    RRD=graph1.rrd
else
    RRD=${BUILD}graph1.rrd
fi

$RRDTOOL create $RRD --start 920804400 DS:speed:COUNTER:600:U:U RRA:AVERAGE:0.5:1:24 RRA:AVERAGE:0.5:6:10
report "create"
$RRDTOOL update $RRD 920804700:12345 920805000:12357 920805300:12363
$RRDTOOL update $RRD 920805600:12363 920805900:12363 920806200:12373
$RRDTOOL update $RRD 920806500:12383 920806800:12393 920807100:12399
$RRDTOOL update $RRD 920807400:12405 920807700:12411 920808000:12415
$RRDTOOL update $RRD 920808300:12420 920808600:12422 920808900:12423
report "update"
# blank out any absolute coordinates, as they might differ
$BLANK < $BASEDIR/graph1.output > $BASEDIR/graph1.output.out
$RRDTOOL graphv $BASEDIR/graph1.out \
      --start 920804400 --end 920808000               \
      DEF:my-speed=$RRD:speed:AVERAGE              \
      VDEF:o=my-speed,MAXIMUM \
      PRINT:o:'%lf' | $BLANK | $DIFF9 - $BASEDIR/graph1.output.out
report "graphv"