From: Andre Noll Date: Sat, 30 Jan 2010 13:15:10 +0000 (+0100) Subject: audiod: Fix time diff log message. X-Git-Tag: v0.4.2~68 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=3741aebd97c1b370f4e783dd6d82dd9e690195a8 audiod: Fix time diff log message. The average time diff was always displayed as "+". --- diff --git a/audiod.c b/audiod.c index 965286f0..a18489d5 100644 --- 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: