diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-18 18:27:47 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-18 18:27:47 +0000 |
commit | 66ce3e0ddf6ee8cfcaa94c9db495ae09b0f22449 (patch) | |
tree | 2184bb9b6e51848d08bc24671fe6ff82e2b22912 /tests/High_Res_Timer_Test.cpp | |
parent | e0cc8d19bf04858aa08be1020f42a3f778a458f5 (diff) | |
download | ATCD-66ce3e0ddf6ee8cfcaa94c9db495ae09b0f22449.tar.gz |
(check): raised success threshold from 10 to 25 percent.
Diffstat (limited to 'tests/High_Res_Timer_Test.cpp')
-rw-r--r-- | tests/High_Res_Timer_Test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/High_Res_Timer_Test.cpp b/tests/High_Res_Timer_Test.cpp index 40ea748016b..b7899277249 100644 --- a/tests/High_Res_Timer_Test.cpp +++ b/tests/High_Res_Timer_Test.cpp @@ -32,7 +32,7 @@ static u_int check (const u_int interval, const u_int measured) { - const u_int threshold = 10 /* percent */; + const u_int threshold = 25 /* percent */; const u_int difference = interval > measured ? interval - measured : measured - interval; @@ -47,8 +47,8 @@ check (const u_int interval, const u_int measured) { ACE_ERROR ((LM_ERROR, ASYS_TEXT ("The measured time of %u differs from " - "the interval of %u by more than %u percent\n"), - measured, interval, threshold)); + "the interval of %u by %u percent.\n"), + measured, interval, percentage_difference)); return 1; } } @@ -90,7 +90,7 @@ main (int, ASYS_TCHAR *[]) ACE_DEBUG ((LM_DEBUG, "interval: %u usec, measured: %u usec%s\n", interval.sec () * 1000000 + interval.usec (), measured.sec () * 1000000 + measured.usec (), - intervals[i] < 10000 ? + intervals[i] <= 10000 ? " (interval and measured may differ)" : "")); if (intervals[i] > 10000) |