mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
fix two typos in comments
This commit is contained in:
parent
cbc1b8a4f7
commit
6cdd024c94
@ -3398,7 +3398,7 @@ connection_dir_finished_flushing(dir_connection_t *conn)
|
||||
tor_assert(conn->base_.type == CONN_TYPE_DIR);
|
||||
|
||||
/* Note that we have finished writing the directory response. For direct
|
||||
* connections this means we're done, for tunneled connections its only
|
||||
* connections this means we're done; for tunneled connections it's only
|
||||
* an intermediate step. */
|
||||
if (conn->dirreq_id)
|
||||
geoip_change_dirreq_state(conn->dirreq_id, DIRREQ_TUNNELED,
|
||||
|
@ -969,7 +969,7 @@ geoip_get_dirreq_history(dirreq_type_t type)
|
||||
&ent->completion_time);
|
||||
if (time_diff == 0)
|
||||
time_diff = 1; /* Avoid DIV/0; "instant" answers are impossible
|
||||
* by law of nature or something, but a milisecond
|
||||
* by law of nature or something, but a millisecond
|
||||
* is a bit greater than "instantly" */
|
||||
bytes_per_second = (uint32_t)(1000 * ent->response_size / time_diff);
|
||||
dltimes[ent_sl_idx] = bytes_per_second;
|
||||
|
Loading…
Reference in New Issue
Block a user