gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / web / webalizer / patches / webalizer-2.01-10-groupvisit.patch
blob9bcae004a33c6554524a9b01d76e649f106b58a6
1 Found in the wild at:
3 http://www.oss4aix.org/download/patches/webalizer-2.01-10-groupvisit.patch
5 https://gitlab.7f.dk/Kralian/oi-userland/blob/ef967b086bc86c4e4af7237f974cb574547bde30/components/webalizer/patches/webalizer-2.01-10-groupvisit.patch
7 --- webalizer-2.23-08/hashtab.c.orig 2016-03-08 14:40:57.594469202 -0800
8 +++ webalizer-2.23-08/hashtab.c 2016-03-08 14:46:27.371481210 -0800
9 @@ -88,6 +88,8 @@
10 DNODEPTR host_table[MAXHASH]; /* DNS hash table */
11 #endif /* USE_DNS */
13 +u_long pre_tstamp = 0; /* prev. real record tstamp */
15 /*********************************************/
16 /* DEL_HTABS - clear out our hash tables */
17 /*********************************************/
18 @@ -179,6 +181,7 @@
19 nptr->visit=(visit-1);
20 nptr->lasturl=find_url(lasturl);
21 nptr->tstamp=tstamp;
22 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
23 return 0;
25 else
26 @@ -188,6 +191,7 @@
27 if (htab==sm_htab) update_entry(log_rec.url);
28 nptr->lasturl=find_url(log_rec.url);
29 nptr->tstamp=tstamp;
30 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
31 nptr->visit=1;
34 @@ -208,7 +212,8 @@
36 if (ispage(log_rec.url))
38 - if ((tstamp-cptr->tstamp)>=visit_timeout)
39 + if ((type!=OBJ_GRP)&&(cptr->flag!=OBJ_GRP)) pre_tstamp=cptr->tstamp;
40 + if ((tstamp-pre_tstamp)>=visit_timeout)
42 cptr->visit++;
43 if (htab==sm_htab)
44 @@ -241,6 +246,7 @@
45 nptr->visit = (visit-1);
46 nptr->lasturl=find_url(lasturl);
47 nptr->tstamp= tstamp;
48 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
49 return 0;
51 else
52 @@ -250,6 +256,7 @@
53 if (htab==sm_htab) update_entry(log_rec.url);
54 nptr->lasturl=find_url(log_rec.url);
55 nptr->tstamp= tstamp;
56 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
57 nptr->visit=1;
60 @@ -845,11 +852,16 @@
62 nptr->visit=(visit-1);
63 nptr->tstamp=tstamp;
64 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
65 return 0;
67 else
69 - if (ispage(log_rec.url)) nptr->tstamp=tstamp;
70 + if (ispage(log_rec.url))
71 + {
72 + nptr->tstamp=tstamp;
73 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
74 + }
78 @@ -869,7 +881,8 @@
80 if (ispage(log_rec.url))
82 - if ((tstamp-cptr->tstamp)>=visit_timeout)
83 + if ((type!=OBJ_GRP)&&(cptr->flag!=OBJ_GRP)) pre_tstamp=cptr->tstamp;
84 + if ((tstamp-pre_tstamp)>=visit_timeout)
85 cptr->visit++;
86 cptr->tstamp=tstamp;
88 @@ -893,11 +906,16 @@
90 nptr->visit = (visit-1);
91 nptr->tstamp= tstamp;
92 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;
93 return 0;
95 else
97 - if (ispage(log_rec.url)) nptr->tstamp= tstamp;
98 + if (ispage(log_rec.url))
99 + {
100 + nptr->tstamp= tstamp;
101 + if ((type!=OBJ_GRP)&&(nptr->flag!=OBJ_GRP)) pre_tstamp=nptr->tstamp;