]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 965286f079ccaa1ab4be969e337f4c1181b82f50..a18489d543a610325cf7312f867b0d7e18e84f7e 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: