]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: status dump fix timestamp formatting
authorAndreas Pape <apape@de.adit-jv.com>
Fri, 17 Feb 2017 07:17:36 +0000 (12:47 +0530)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Feb 2017 17:40:48 +0000 (18:40 +0100)
commita50496346f39e91ecd42cb09bc5c95321131be55
tree9bbfe153920299bf00a4355777ae7f064ab603e6
parentfe65b00f337dd08f8c14d54b0ce6b516424d78e8
pcm: status dump fix timestamp formatting

nanosecond part formatted with %06 will give incorrect/confusing results:

trigger_time: 154.9748287
trigger_time: 154.60109090
trigger_time: 154.110425257

time seems to run backwards...

This patch converts to us before printing
which gives the correct/expected result:

trigger_time: 154.009748
trigger_time: 154.060109
trigger_time: 154.110425

Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Mounesh Sutar <sutar.mounesh@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm.c