For calculations in rrdtool you can use CDEF expressions when drawing graphs or in rrdtool xport commands.
CDEF:perc=x,200,/
The expressions are based on reversed polish notation and documented in man rrdgraph_data
.
In this example:
perc
is the name of the new computed field- stuff after
=
is an expression in reversed polish notation meaningx/200