modified neighbour structure to include record of when route metrics

were last updated, so that we can avoid excessive updating and thus
wasting of CPU/energy.
This commit is contained in:
gardners 2012-04-22 20:16:48 +09:30
parent ae3715ae99
commit e8eaa32227

View File

@ -927,6 +927,7 @@ typedef struct overlay_node {
typedef struct overlay_neighbour {
long long last_observation_time_ms;
long long last_metric_update;
int most_recent_observation_id;
overlay_neighbour_observation observations[OVERLAY_MAX_OBSERVATIONS];
overlay_node *node;