wmtv: Fix frequency sent to external program.

Need to divide by 16 or 16000 depending on whether using kHz or MHz.

Patch by Nicolas Boullis <nboullis@debian.org> for Debian package version
0.6.5-14 or 15.  (Not mentioned in debian/changelog.)
This commit is contained in:
Doug Torrance 2016-02-01 00:45:15 -05:00 committed by Carlos R. Mafra
parent b2d150eb6d
commit b831e66e9a

View file

@ -547,7 +547,7 @@ main(int argc, char *argv[])
snprintf(expansions[0], 3, "%d", cchannel+1); snprintf(expansions[0], 3, "%d", cchannel+1);
expansions[1] = comment[cchannel]; expansions[1] = comment[cchannel];
expansions[2] = malloc(15*sizeof(char)); expansions[2] = malloc(15*sizeof(char));
snprintf(expansions[2], 15, "%ld", rfreq); snprintf(expansions[2], 15, "%.3f", (double)rfreq/(double)st);
command = expand_format(exe, letters, expansions); command = expand_format(exe, letters, expansions);
/* system(exe); */ /* system(exe); */
child_pid = fork(); child_pid = fork();