All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alsa-utils: fix timespec to msec conversion
@ 2014-01-21 20:25 Olivier Langlois
  2014-01-22  7:06 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Langlois @ 2014-01-21 20:25 UTC (permalink / raw
  To: alsa-devel; +Cc: Olivier Langlois

There is 1M nsec in a msec.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
---
 aplay/aplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aplay/aplay.c b/aplay/aplay.c
index 69e8bda..33a8ed5 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -1509,7 +1509,7 @@ static void xrun(void)
 			timermsub(&now, &tstamp, &diff);
 			fprintf(stderr, _("%s!!! (at least %.3f ms long)\n"),
 				stream == SND_PCM_STREAM_PLAYBACK ? _("underrun") : _("overrun"),
-				diff.tv_sec * 1000 + diff.tv_nsec / 10000000.0);
+				diff.tv_sec * 1000 + diff.tv_nsec / 1000000.0);
 #else
 			fprintf(stderr, "%s !!!\n", _("underrun"));
 #endif
-- 
1.8.5.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] alsa-utils: fix timespec to msec conversion
  2014-01-21 20:25 [PATCH] alsa-utils: fix timespec to msec conversion Olivier Langlois
@ 2014-01-22  7:06 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2014-01-22  7:06 UTC (permalink / raw
  To: Olivier Langlois; +Cc: alsa-devel

At Tue, 21 Jan 2014 15:25:12 -0500,
Olivier Langlois wrote:
> 
> There is 1M nsec in a msec.
> 
> Signed-off-by: Olivier Langlois <olivier@trillion01.com>

Applied, thanks.


Takashi

> ---
>  aplay/aplay.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/aplay/aplay.c b/aplay/aplay.c
> index 69e8bda..33a8ed5 100644
> --- a/aplay/aplay.c
> +++ b/aplay/aplay.c
> @@ -1509,7 +1509,7 @@ static void xrun(void)
>  			timermsub(&now, &tstamp, &diff);
>  			fprintf(stderr, _("%s!!! (at least %.3f ms long)\n"),
>  				stream == SND_PCM_STREAM_PLAYBACK ? _("underrun") : _("overrun"),
> -				diff.tv_sec * 1000 + diff.tv_nsec / 10000000.0);
> +				diff.tv_sec * 1000 + diff.tv_nsec / 1000000.0);
>  #else
>  			fprintf(stderr, "%s !!!\n", _("underrun"));
>  #endif
> -- 
> 1.8.5.3
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-22  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21 20:25 [PATCH] alsa-utils: fix timespec to msec conversion Olivier Langlois
2014-01-22  7:06 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.