diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-02-01 01:01:10 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-02-01 14:04:47 +0100 |
commit | e5acae0052fbe877979dcbf4a1434a12fa23d70a (patch) | |
tree | daf894618b2591a0adccd75b15c5d338f13bd7e4 /tests/libtest/lib500.c | |
parent | efc112079c9d98dbe871dfcc7c00c8c46a1931f8 (diff) | |
download | curl-e5acae0052fbe877979dcbf4a1434a12fa23d70a.tar.gz |
test 500: workaround low timer resolution on Windows
Since the timer resolution is lower, there are actually cases that
the compared values are equal. Therefore we check for previous
timestamps being greater than the current one instead.
Diffstat (limited to 'tests/libtest/lib500.c')
-rw-r--r-- | tests/libtest/lib500.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c index dda1d7f42..b1c53fac9 100644 --- a/tests/libtest/lib500.c +++ b/tests/libtest/lib500.c @@ -110,19 +110,19 @@ int test(char *URL) /* since the timing will always vary we only compare relative differences between these 5 times */ - if(time_namelookup >= time_connect) { + if(time_namelookup > time_connect) { fprintf(moo, "namelookup vs connect: %f %f\n", time_namelookup, time_connect); } - if(time_connect >= time_pretransfer) { + if(time_connect > time_pretransfer) { fprintf(moo, "connect vs pretransfer: %f %f\n", time_connect, time_pretransfer); } - if(time_pretransfer >= time_starttransfer) { + if(time_pretransfer > time_starttransfer) { fprintf(moo, "pretransfer vs starttransfer: %f %f\n", time_pretransfer, time_starttransfer); } - if(time_starttransfer >= time_total) { + if(time_starttransfer > time_total) { fprintf(moo, "starttransfer vs total: %f %f\n", time_starttransfer, time_total); } |