aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLu, Patrick <patrick.lu@intel.com>2018-02-06 13:54:51 -0700
committerPatrick Lu <Patrick.Lu@intel.com>2018-10-16 22:14:34 -0700
commit293b72d442d1e12a9ad8bff5fed89ddbfe1481f0 (patch)
tree84f3b3c9b2bf54605fe8c89aee5c0ba75b22515b
parent18e9e3338d64d4b1b7b611e8e4c5e814b14058ae (diff)
jitter: flush stdout more frequently
Flush printf after every output, so we can pipe output to tee or file more often. We should watch out if there is any adverse effect. Change-Id: Id19e125388d55c984546e94f1a7165b03af17748 Signed-off-by: Patrick Lu <patrick.lu@intel.com>
-rw-r--r--jitter/jitter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jitter/jitter.c b/jitter/jitter.c
index a93929e..24bc3bd 100644
--- a/jitter/jitter.c
+++ b/jitter/jitter.c
@@ -290,6 +290,7 @@ int main(int argc, char* argv[])
absoluteMax,tmp,
(endTime-lasttime),
SampleNo);
+ fflush(stdout);
}
else
{