prevision: only look 5y in the future (more precise)

This commit is contained in:
Vincent Riquer 2015-02-05 17:09:20 +01:00
parent 412fcfad37
commit 951c2a2bac
2 changed files with 4 additions and 4 deletions

View File

@ -21,8 +21,8 @@ get_next_level() {
nextlevels[level]=$timestamp nextlevels[level]=$timestamp
done done
} < <( } < <(
rrdtool graph /dev/null -s ${first["time"]%:} -e +15y \ rrdtool graph /dev/null -s -$prevperiod -e +5y \
DEF:data=$rrdfile:AP:AVERAGE:step=600 \ DEF:data=$rrdfile:AP:AVERAGE:step=3600 \
VDEF:intercept=data,LSLINT \ VDEF:intercept=data,LSLINT \
VDEF:growth=data,LSLSLOPE \ VDEF:growth=data,LSLSLOPE \
CDEF:trend=data,POP,COUNT,growth,*,intercept,+ \ CDEF:trend=data,POP,COUNT,growth,*,intercept,+ \
@ -96,7 +96,7 @@ get_next_level() {
esac esac
done done
} < <( } < <(
rrdtool graph /dev/null -s ${first["time"]%:} -e +15y \ rrdtool graph /dev/null -s -$prevperiod -e +5y \
DEF:data=$rrdfile:$stat:AVERAGE:step=600 \ DEF:data=$rrdfile:$stat:AVERAGE:step=600 \
VDEF:intercept=data,LSLINT \ VDEF:intercept=data,LSLINT \
VDEF:growth=data,LSLSLOPE \ VDEF:growth=data,LSLSLOPE \

View File

@ -29,7 +29,7 @@ L14color=8B1479
L15color=6B127D L15color=6B127D
L16color=591494 L16color=591494
default_prevperiod=1m default_prevperiod=1month
now=$(date +%s) now=$(date +%s)
(( default_start = now - 604800 )) (( default_start = now - 604800 ))