replace float with integral type initialization in frequency meter