mirror of
https://github.com/curl/curl.git
synced 2026-05-19 09:36:25 +03:00
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.
This commit is contained in:
parent
efc112079c
commit
e5acae0052
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue