summaryrefslogtreecommitdiff
path: root/src/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto.c b/src/proto.c
index e85d45e..d17f331 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -959,10 +959,12 @@ int proto_run(struct dht* dht, char* buff, size_t recv_len, struct sockaddr_in*
}
dht->lookup.state = OP_ACTIVE;
+ prom_gauge_set(lookup_state, dht->lookup.state, NULL);
prom_counter_inc(lookup_count, NULL);
dbg("Lookup started");
} else if(dht->lookup.state == OP_ACTIVE && dht->lookup.outstanding == 0) {
dht->lookup.state = OP_COMPLETED;
+ prom_gauge_set(lookup_state, dht->lookup.state, NULL);
}
// @HACK 0 means unitialized, only happens in tests