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:
parent
b2d150eb6d
commit
b831e66e9a
|
@ -547,7 +547,7 @@ main(int argc, char *argv[])
|
|||
snprintf(expansions[0], 3, "%d", cchannel+1);
|
||||
expansions[1] = comment[cchannel];
|
||||
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);
|
||||
/* system(exe); */
|
||||
child_pid = fork();
|
||||
|
|
Loading…
Reference in a new issue