Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / net / httping / patches / 003-fix_response_time.patch
1 --- a/utils.c
2 +++ b/utils.c
3 @@ -18,12 +18,11 @@
4 double get_ts(void)
5 {
6 struct timeval ts;
7 - struct timezone tz;
8
9 - if (gettimeofday(&ts, &tz) == -1)
10 + if (gettimeofday(&ts, NULL) == -1)
11 error_exit(gettext("gettimeofday failed"));
12
13 - return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0 + (double)(tz.tz_minuteswest * 60);
14 + return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0;
15 }
16
17 void split_string(const char *in, const char *split, char ***list, int *list_n)