audiod: Fix time diff log message.
authorAndre Noll <maan@systemlinux.org>
Sat, 30 Jan 2010 13:15:10 +0000 (14:15 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 30 Jan 2010 13:15:10 +0000 (14:15 +0100)
The average time diff was always displayed as "+".

audiod.c

index 965286f..a18489d 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -654,9 +654,9 @@ static unsigned compute_time_diff(const struct timeval *status_time)
                &tmp);
        stat_task->sa_time_diff = tmp;
        PARA_INFO_LOG("time diff (cur/avg): %s%lums/%s%lums\n",
-               sign > 0? "+" : "-",
+               sign < 0? "-" : "+",
                tv2ms(&diff),
-               sa_time_diff_sign ? "+" : "-",
+               sa_time_diff_sign < 0? "-" : "+",
                tv2ms(&stat_task->sa_time_diff)
        );
 out: