summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/lib/timeval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl/lib/timeval.c')
-rw-r--r--Utilities/cmcurl/lib/timeval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Utilities/cmcurl/lib/timeval.c b/Utilities/cmcurl/lib/timeval.c
index f3b207a..0d6036b 100644
--- a/Utilities/cmcurl/lib/timeval.c
+++ b/Utilities/cmcurl/lib/timeval.c
@@ -139,8 +139,7 @@ double curlx_tvdiff_secs(struct timeval newer, struct timeval older)
if(newer.tv_sec != older.tv_sec)
return (double)(newer.tv_sec-older.tv_sec)+
(double)(newer.tv_usec-older.tv_usec)/1000000.0;
- else
- return (double)(newer.tv_usec-older.tv_usec)/1000000.0;
+ return (double)(newer.tv_usec-older.tv_usec)/1000000.0;
}
/* return the number of seconds in the given input timeval struct */