Converted frequency to double

In order to support longer periods and put some granularity in low
frequencies, frequency was changed from long to double.