From: Olivier Langlois Date: Tue, 21 Jan 2014 20:25:12 +0000 (-0500) Subject: aplay: fix timespec to msec conversion X-Git-Tag: v1.0.28~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=360878f9c331d0aaedad6469275062540d8a4537;p=alsa-utils.git aplay: fix timespec to msec conversion There is 1M nsec in a msec. Signed-off-by: Olivier Langlois Signed-off-by: Takashi Iwai --- 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