From: Jaroslav Kysela Date: Sun, 6 Mar 2016 08:36:49 +0000 (+0100) Subject: reduce gtimer check traces X-Git-Tag: v4.2.1~958 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed69f7641bc029fcd851c66e6497d923ebc6114b;p=thirdparty%2Ftvheadend.git reduce gtimer check traces --- diff --git a/src/main.c b/src/main.c index 68753f0de..2630e61fa 100644 --- a/src/main.c +++ b/src/main.c @@ -589,7 +589,9 @@ mtimer_thread(void *aux) cb(mti->mti_opaque); #if ENABLE_GTIMER_CHECK - tvhtrace("mtimer", "%s:%s duration %"PRId64"ns", id, fcn, getmonoclock() - mtm); + mtm = getmonoclock() - mtm; + if (mtm > 10000) + tvhtrace("mtimer", "%s:%s duration %"PRId64"us", id, fcn, mtm); #endif } @@ -670,7 +672,9 @@ mainloop(void) cb(gti->gti_opaque); #if ENABLE_GTIMER_CHECK - tvhtrace("gtimer", "%s:%s duration %"PRId64"ns", id, fcn, getmonoclock() - mtm); + mtm = getmonoclock() - mtm; + if (mtm > 10000) + tvhtrace("gtimer", "%s:%s duration %"PRId64"us", id, fcn, mtm); #endif }