Revision ac9b476d

View differences:

som/TopologyManager/ncast.c
111 111
  }
112 112

  
113 113
  if (time_to_send()) {
114
    cache_update(local_cache);
114
    cache_update_tout(local_cache);
115 115
    ncast_query(local_cache);
116 116
  }
117 117

  
som/TopologyManager/topocache.c
139 139
  return c->current_size;
140 140
}
141 141

  
142
void cache_update(struct peer_cache *c)
142
void cache_update_tout(struct peer_cache *c)
143 143
{
144 144
  int i;
145 145
  
......
155 155
  }
156 156
}
157 157

  
158
void cache_update(struct peer_cache *c)
159
{
160
  int i;
161
  
162
  for (i = 0; i < c->current_size; i++) {
163
      c->entries[i].timestamp++;
164
  }
165
}
166

  
158 167
struct peer_cache *cache_init(int n, int metadata_size)
159 168
{
160 169
  struct peer_cache *res;
som/TopologyManager/topocache.h
5 5
struct peer_cache *cache_init(int n, int metadata_size);
6 6
void cache_free(struct peer_cache *c);
7 7
void cache_update(struct peer_cache *c);
8
void cache_update_tout(struct peer_cache *c);
8 9

  
9 10
struct nodeID *nodeid(const struct peer_cache *c, int i);
10 11
const void *get_metadata(const struct peer_cache *c, int *size);

Also available in: Unified diff