diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-01-11 10:48:05 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-01-11 12:08:01 -0500 |
commit | b5af456685b502462385b5f1b7f22f4374822fe1 (patch) | |
tree | 109aaf6977d92f21bb5a8bb93dfb2ddb8e033c94 /src/or | |
parent | c5b58df77588fd1307d248e75d360eb27023033c (diff) | |
download | tor-b5af456685b502462385b5f1b7f22f4374822fe1.tar.gz tor-b5af456685b502462385b5f1b7f22f4374822fe1.zip |
Use spaceless ISO8601 time format, not sec,usec.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c index e15adbd8e8..364cf9905c 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1853,10 +1853,10 @@ circuit_describe_status_for_controller(origin_circuit_t *circ) { char *time_created_arg = NULL; + char tbuf[ISO_TIME_USEC_LEN+1]; + format_iso_time_nospace_usec(tbuf, &circ->_base.timestamp_created); - tor_asprintf(&time_created_arg, "TIME_CREATED=%ld,%ld", - circ->_base.timestamp_created.tv_sec, - circ->_base.timestamp_created.tv_usec); + tor_asprintf(&time_created_arg, "TIME_CREATED=%s", tbuf); smartlist_add(descparts, time_created_arg); } |