Fix timestamps for period generation

To prevent a wrong format of the timestamps like:

http://munin.yeahwh.at/munin-cgi/munin-cgi-graph/frd.mn/yoda.frd.mn/exim_mailqueue-pinpoint=1393571820.313,1394781420.313.png?size_x=800&size_y=400