Revision ac9b476d som/TopologyManager/topocache.c
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; |
Also available in: Unified diff