~ubuntu-branches/ubuntu/oneiric/apachetop/oneiric

« back to all changes in this revision

Viewing changes to src/timed_circle.cc

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Sammicheli
  • Date: 2011-05-02 13:22:26 UTC
  • mfrom: (8.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110502132226-fj9j7hhrl33u4vcn
Tags: 0.12.6-13ubuntu1
* Merge from debian unstable. (LP: #776597) Remaining changes: 
  - debian/patches/02-maxpathlen.patch: Update and autoreconf -f -i,
    fixes FTBFS 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
extern time_t now; /* global ApacheTop-wide to save on time() calls */
16
16
extern struct gstat gstats;
17
17
 
18
 
extern map *hm, *um, *rm;
 
18
extern map *hm, *um, *rm, *im;
19
19
 
20
20
int Timed_Circle::create(unsigned int size)
21
21
{
92
92
                if (hit->host_pos) hm->sub_ref(hit->host_pos);
93
93
                if (hit->url_pos) um->sub_ref(hit->url_pos);
94
94
                if (hit->ref_pos) rm->sub_ref(hit->ref_pos);
 
95
                if (hit->ip_pos) im->sub_ref(hit->ip_pos);
95
96
        }
96
97
 
97
98
        /* start at the beginning of the HIT array */
144
145
        if (hit->host_pos) hm->sub_ref(hit->host_pos);
145
146
        if (hit->url_pos) um->sub_ref(hit->url_pos);
146
147
        if (hit->ref_pos) rm->sub_ref(hit->ref_pos);
 
148
        if (hit->ip_pos) im->sub_ref(hit->ip_pos);
147
149
 
148
150
        /* store the data itself */
149
151
        memcpy(hit, &lb, sizeof(lb));