Hello,

I'm sorry to bother you again, I tried what you sent me. It gives me the
following result:
period=300
time=3600

end=`date +%s` gives =====> end=1309521104

end=$(( ( ${end} / ${period} ) * ${period} )) =====> after this operations
it gives end=1309520880

time=$(( ( ${time} / ${period} ) * ${period} ))=====> time don't change
after operations time=3600

start=$(( ${end} - ${time} ))=====>  this operations gives the value of
start start=1309517280

it shows ok, but when i run rrdtool fetch it does not accept the value 3600

rrdtool fetch $rrd AVERAGE -r $period -s $time =====> ERROR: start time: did
you really mean month 3600?

thank you very much.
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to