diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-09 12:00:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-09 14:01:00 -0400 |
commit | 0abf09b2cea9e2af5a9d743b78447021213d02ab (patch) | |
tree | 3610430bbe4351667c6ef8e011ed229fc0700261 /src/or/main.c | |
parent | 15ce5a3e5ab18f44172f1ada3fe1735f28a95c09 (diff) | |
download | tor-0abf09b2cea9e2af5a9d743b78447021213d02ab.tar.gz tor-0abf09b2cea9e2af5a9d743b78447021213d02ab.zip |
spelling fix
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index b8827b947d..ed1bf9aeb1 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2538,7 +2538,7 @@ update_current_time(time_t now) monotime_coarse_diff_msec32(&last_updated, ¤t_second_last_changed); const int monotime_sec_passed = monotime_msec_passed / 1000; - const int discrepency = monotime_sec_passed - (int)seconds_elapsed; + const int discrepancy = monotime_sec_passed - (int)seconds_elapsed; /* If the monotonic clock deviates from time(NULL), we have a couple of * possibilities. On some systems, this means we have been suspended or * sleeping. Everywhere, it can mean that the wall-clock time has @@ -2548,7 +2548,7 @@ update_current_time(time_t now) * time, we've probably just been idle for a while, with no events firing. * we tolerate much more of that. */ - const bool clock_jumped = abs(discrepency) > 2; + const bool clock_jumped = abs(discrepancy) > 2; if (clock_jumped || seconds_elapsed >= NUM_IDLE_SECONDS_BEFORE_WARN) { circuit_note_clock_jumped(seconds_elapsed, ! clock_jumped); |