From 3741aebd97c1b370f4e783dd6d82dd9e690195a8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 30 Jan 2010 14:15:10 +0100 Subject: [PATCH] audiod: Fix time diff log message. The average time diff was always displayed as "+". --- audiod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5