audiod: Don't compute stat info unnecessarily.
authorAndre Noll <maan@systemlinux.org>
Mon, 9 Sep 2013 21:20:31 +0000 (21:20 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 22 Sep 2013 00:29:19 +0000 (02:29 +0200)
commit1ff4b2cba04db47b59cc3da23c4245d14d697638
treee87c3a4b0a2ef9d50be2207755c3e71e4ded6f7f
parentd80f5d3ac72591069728fd786d9a0fd96ccfd06f
audiod: Don't compute stat info unnecessarily.

Currently we compute this information in each scheduler iteration
and check whether it has changed since the last time we sent it to
the stat clients.

This is quite expensive, so this patch teaches para_audiod to only look
at the status items if the last write time was more than 500ms ago.
audiod.c