Supporting functions for rrd_graph. Functions that are used frequently