mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Fixed the channel frequency value.
This commit is contained in:
parent
2e5dad9ec5
commit
91a1360e09
@ -524,8 +524,9 @@ cString getAC3DialogLevel(int value)
|
|||||||
|
|
||||||
cString getFrequencyMHz(int value)
|
cString getFrequencyMHz(int value)
|
||||||
{
|
{
|
||||||
while (value > 20000) value /= 1000;
|
double freq = value;
|
||||||
return cString::sprintf("%d %s", value, tr("MHz"));
|
while (freq > 20000.0) freq /= 1000.0;
|
||||||
|
return cString::sprintf("%s %s", *dtoa(freq, "%lg"), tr("MHz"));
|
||||||
}
|
}
|
||||||
|
|
||||||
cString getAudioSamplingFreq(int value)
|
cString getAudioSamplingFreq(int value)
|
||||||
|
Loading…
Reference in New Issue
Block a user