diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-30 15:17:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-30 15:17:07 +0000 |
commit | c0c2001a5b8fd3907c7ba93eccbd536786f57594 (patch) | |
tree | c7aa35ecb0eab620cbd592451600347410da4dee /src/common/util.h | |
parent | 7709fb7143cc272c04f9de3970e4ac0fe3a000d6 (diff) | |
download | tor-c0c2001a5b8fd3907c7ba93eccbd536786f57594.tar.gz tor-c0c2001a5b8fd3907c7ba93eccbd536786f57594.zip |
r16279@catbus: nickm | 2007-10-30 11:14:29 -0400
Improved skew reporting: "You are 365 days in the duture" is more useful than "You are 525600 minutes in the future". Also, when we get something that proves we are at least an hour in the past, tell the controller "CLOCK_SKEW MIN_SKEW=-3600" rather than just "CLOCK_SKEW"
svn:r12283
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 950de9bacc..43587af72a 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -206,6 +206,7 @@ void format_local_iso_time(char *buf, time_t t); void format_iso_time(char *buf, time_t t); int parse_iso_time(const char *buf, time_t *t); int parse_http_time(const char *buf, struct tm *tm); +int format_time_interval(char *out, size_t out_len, long interval); /* Fuzzy time. */ void ftime_set_maximum_sloppiness(int seconds); void ftime_set_estimated_skew(int seconds); |