[PATCH] beep: the -d option takes milliseconds not microseconds

Denys Vlasenko vda.linux at googlemail.com
Sun Mar 14 14:33:24 UTC 2010


On Thursday 11 March 2010 21:42, Natanael Copa wrote:
> From: Natanael Copa <ncopa at alpinelinux.org>
> 
> ---
>  miscutils/beep.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/miscutils/beep.c b/miscutils/beep.c
> index c17cbfd..10768e7 100644
> --- a/miscutils/beep.c
> +++ b/miscutils/beep.c
> @@ -83,7 +83,7 @@ int beep_main(int argc, char **argv)
>  			usleep(1000 * length);
>  			ioctl(speaker, KIOCSOUND, (void*)0);
>  			if (--rep)
> -				usleep(delay);
> +				usleep(1000 * delay);
>  		}
>  	}
>  

Applied, thanks!
-- 
vda


More information about the busybox mailing list