diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-01-11 12:23:43 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-01-11 12:23:43 -0500 |
commit | fa83397ecdba136af4b493a4bf70ef752356fde2 (patch) | |
tree | 03dbcb98d9ac3319b4fa8482bc3f24dfdfda0dae | |
parent | f729e1e984896a9d6852768a8e5528932f668ac3 (diff) | |
download | tor-fa83397ecdba136af4b493a4bf70ef752356fde2.tar.gz tor-fa83397ecdba136af4b493a4bf70ef752356fde2.zip |
Fix a missing iso_time_nospace_usec
Apparently I missed a case when converting sec,usec to
yyyy-mm-ddThh:mm:ss.uuuuuu .
-rw-r--r-- | src/or/control.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c index debf0f0441..a93994606d 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3420,14 +3420,15 @@ control_event_circuit_status_minor(origin_circuit_t *circ, const char *hs_state_str = circuit_purpose_to_controller_hs_state_string(purpose); const struct timeval *old_timestamp_created = tv; + char tbuf[ISO_TIME_USEC_LEN+1]; + format_iso_time_nospace_usec(tbuf, old_timestamp_created); tor_snprintf(event_tail, sizeof(event_tail), - " OLD_PURPOSE=%s%s%s OLD_TIME_CREATED=%ld,%ld", + " OLD_PURPOSE=%s%s%s OLD_TIME_CREATED=%s", circuit_purpose_to_controller_string(purpose), (hs_state_str != NULL) ? " OLD_HS_STATE=" : "", (hs_state_str != NULL) ? hs_state_str : "", - old_timestamp_created->tv_sec, - old_timestamp_created->tv_usec); + tbuf); } break; |