aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-06-25 19:05:43 -0700
committerRobert Ransom <rransom.8774@gmail.com>2011-11-24 06:55:16 -0800
commit17113448d26f02576a2aabe8163ef5b65c810bae (patch)
treeb61287b55c88d635e6fdc3cdfa0f451d78542666 /src/or
parent88e0026d2f0260bb5e3ce88bf2cdead6b521b6b3 (diff)
downloadtor-17113448d26f02576a2aabe8163ef5b65c810bae.tar.gz
tor-17113448d26f02576a2aabe8163ef5b65c810bae.zip
Include circ creation time in CIRC events, etc.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 5874fe1d5a..eedc8eac34 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1851,6 +1851,16 @@ circuit_describe_status_for_controller(origin_circuit_t *circ)
smartlist_add(descparts, rend_query_arg);
}
+ {
+ char *time_created_arg = NULL;
+
+ tor_asprintf(&time_created_arg, "TIME_CREATED=%ld,%ld",
+ circ->_base.timestamp_created.tv_sec,
+ circ->_base.timestamp_created.tv_usec);
+
+ smartlist_add(descparts, time_created_arg);
+ }
+
rv = smartlist_join_strings(descparts, " ", 0, NULL);
SMARTLIST_FOREACH(descparts, char *, cp, tor_free(cp));