From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 16 04:50:21 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1546D16A4CE for ; Wed, 16 Jun 2004 04:50:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5B9A43D58 for ; Wed, 16 Jun 2004 04:50:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i5G4oJOD081793 for ; Wed, 16 Jun 2004 04:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5G4oJLW081758; Wed, 16 Jun 2004 04:50:19 GMT (envelope-from gnats) Resent-Date: Wed, 16 Jun 2004 04:50:19 GMT Resent-Message-Id: <200406160450.i5G4oJLW081758@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jukka A. Ukkonen" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90CBD16A4CE for ; Wed, 16 Jun 2004 04:44:37 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 892AF43D31 for ; Wed, 16 Jun 2004 04:44:37 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5G4iaci054733 for ; Wed, 16 Jun 2004 04:44:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i5G4iaGe054732; Wed, 16 Jun 2004 04:44:36 GMT (envelope-from nobody) Message-Id: <200406160444.i5G4iaGe054732@www.freebsd.org> Date: Wed, 16 Jun 2004 04:44:36 GMT From: "Jukka A. Ukkonen" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/67995: Morse plays beeps 10 times faster than it should. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 04:50:21 -0000 >Number: 67995 >Category: misc >Synopsis: Morse plays beeps 10 times faster than it should. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 16 04:50:19 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jukka A. Ukkonen >Release: FreeBSD 4.10-STABLE >Organization: >Environment: FreeBSD mjolnir 4.10-STABLE FreeBSD 4.10-STABLE #0: Tue Jun 15 16:28:00 EET DST 2004 jau@mjolnir:/usr/src/sys/compile/Mjolnir i386 >Description: The morse program has a scaling problem while counting the proper dot_clock (dot length) value. As a result the dot duration becomes only 1/10 of what it should be. >How-To-Repeat: morse -p whatever You will hear only insane sqeeking. Multiply the dot duration by 10 (add -w2 to the command) and your morse comes out just fine. >Fix: Apply the patch below. (Tab characters have been preserved by importing the patch via xcut and xclipboard.) --- morse.c.orig Wed Jun 16 07:26:18 2004 +++ morse.c Wed Jun 16 07:28:32 2004 @@ -374,7 +374,7 @@ dot_clock = 1 / dot_clock; /* duration of a dot */ dot_clock = dot_clock / 2; /* dot_clock runs at twice */ /* the dot rate */ - dot_clock = dot_clock * 100; /* scale for ioctl */ + dot_clock = dot_clock * 1000; /* scale for ioctl */ } argc -= optind; >Release-Note: >Audit-Trail: >Unformatted: