added period parameter to rrd_traf graph function