Fixed the channel frequency value.

This commit is contained in:
Rolf Ahrenberg 2014-04-12 23:01:46 +03:00
parent 2e5dad9ec5
commit 91a1360e09
1 changed files with 3 additions and 2 deletions

View File

@ -524,8 +524,9 @@ cString getAC3DialogLevel(int value)
cString getFrequencyMHz(int value)
{
while (value > 20000) value /= 1000;
return cString::sprintf("%d %s", value, tr("MHz"));
double freq = value;
while (freq > 20000.0) freq /= 1000.0;
return cString::sprintf("%s %s", *dtoa(freq, "%lg"), tr("MHz"));
}
cString getAudioSamplingFreq(int value)