dahdi_test: Enforce range from 0.0% - 100.0% for accuracy.
authorShaun Ruffell <sruffell@digium.com>
Thu, 29 Sep 2011 17:00:59 +0000 (17:00 +0000)
committerShaun Ruffell <sruffell@digium.com>
Thu, 29 Sep 2011 17:00:59 +0000 (17:00 +0000)
commit78584da122f21761398147bf946c9ede29af342a
tree85a587ad967b148f08de3f8abc267309c09960bb
parentcbb0252a6a29d9cf69c3b41c13d68160662c45d9
dahdi_test: Enforce range from 0.0% - 100.0% for accuracy.

Also makes sure that the percentage output from the verbose and
non-verbose modes of timer_test are the same and print a cumulative
accuracy which smooths out the jitter for each pass.

If the time it takes to read in 1 second worth of data is longer than 1
second  accuracy will be 0%.

(closes issue #18573)
Reported by: smurfix

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10216 17933a7a-c749-41c5-a318-cba88f637d49
dahdi_test.c