This shows you the differences between two versions of the page.
saisp:labs:03:contents:05 [2014/04/04 11:12] razvan.deaconescu [05. [20p] Baze de date Round Robin (RRD)] |
saisp:labs:03:contents:05 [2014/04/05 12:08] (current) mihai.carabas [05. [20p] Baze de date Round Robin (RRD)] |
||
---|---|---|---|
Line 46: | Line 46: | ||
# Align timestamp to multiple of 5 seconds. | # Align timestamp to multiple of 5 seconds. | ||
- | timestamp=$(($data/5*5)) | + | timestamp=$(($timestamp/5*5)) |
init_timestamp=$timestamp | init_timestamp=$timestamp | ||
Line 64: | Line 64: | ||
inOctets=$(...) | inOctets=$(...) | ||
- | rrdtool update target.rrd $data:$inOctets:$outOctets | + | rrdtool update target.rrd $timestamp:$inOctets:$outOctets |
done | done | ||