mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a missing iso_time_nospace_usec
Apparently I missed a case when converting sec,usec to yyyy-mm-ddThh:mm:ss.uuuuuu .
This commit is contained in:
parent
f729e1e984
commit
fa83397ecd
@ -3420,14 +3420,15 @@ control_event_circuit_status_minor(origin_circuit_t *circ,
|
|||||||
const char *hs_state_str =
|
const char *hs_state_str =
|
||||||
circuit_purpose_to_controller_hs_state_string(purpose);
|
circuit_purpose_to_controller_hs_state_string(purpose);
|
||||||
const struct timeval *old_timestamp_created = tv;
|
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),
|
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),
|
circuit_purpose_to_controller_string(purpose),
|
||||||
(hs_state_str != NULL) ? " OLD_HS_STATE=" : "",
|
(hs_state_str != NULL) ? " OLD_HS_STATE=" : "",
|
||||||
(hs_state_str != NULL) ? hs_state_str : "",
|
(hs_state_str != NULL) ? hs_state_str : "",
|
||||||
old_timestamp_created->tv_sec,
|
tbuf);
|
||||||
old_timestamp_created->tv_usec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user