summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-15 12:35:55 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-15 12:38:02 -0400
commit36c5476e7081776fc33bcc3ce1f261666985f5da (patch)
tree246052ef33679d4d43e0cc4c1b70f760679bfb95 /src/or/circuitbuild.c
parent94a99ad205665bc387831de37566b9cb16d40397 (diff)
downloadtor-36c5476e7081776fc33bcc3ce1f261666985f5da.tar.gz
tor-36c5476e7081776fc33bcc3ce1f261666985f5da.zip
Fold timestamp_created into highres_created
There's no reason to keep a time_t and a struct timeval to represent the same value: highres_created.tv_sec was the same as timestamp_created. This should save a few bytes per circuit.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 9c7262a855..f8a198bb71 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1924,7 +1924,7 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
struct timeval end;
long timediff;
tor_gettimeofday(&end);
- timediff = tv_mdiff(&circ->_base.highres_created, &end);
+ timediff = tv_mdiff(&circ->_base.timestamp_created, &end);
/*
* If the circuit build time is much greater than we would have cut