mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
httping: import from oldpackages and upgrade to version 2.5
Package version upgraded to 2.5 with patches: - Fixed compiler warnings - Fixed miscalculated response time - Reduced binary size by stripping unused code Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
--- a/utils.c
|
||||
+++ b/utils.c
|
||||
@@ -18,12 +18,11 @@
|
||||
double get_ts(void)
|
||||
{
|
||||
struct timeval ts;
|
||||
- struct timezone tz;
|
||||
|
||||
- if (gettimeofday(&ts, &tz) == -1)
|
||||
+ if (gettimeofday(&ts, NULL) == -1)
|
||||
error_exit(gettext("gettimeofday failed"));
|
||||
|
||||
- return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0 + (double)(tz.tz_minuteswest * 60);
|
||||
+ return (double)ts.tv_sec + ((double)ts.tv_usec)/1000000.0;
|
||||
}
|
||||
|
||||
void split_string(const char *in, const char *split, char ***list, int *list_n)
|
||||
Reference in New Issue
Block a user