summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-08 12:40:26 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-08 12:40:26 -0500
commit152c9cba65b85fb034f10b3485b5011ecff06f36 (patch)
treee64d5bd9289e4cc39b242583a85569817d89f853
parented45bc198f10f5ea3dbd40514bb5b443802b50aa (diff)
downloadtor-152c9cba65b85fb034f10b3485b5011ecff06f36.tar.gz
tor-152c9cba65b85fb034f10b3485b5011ecff06f36.zip
Make LogTimeGranularity respect validate_only
-rw-r--r--src/or/config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 0251ef49db..25f07edcef 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4364,9 +4364,11 @@ options_init_logs(or_options_t *options, int validate_only)
"divisor or a multiple of 1 second. Changing to "
"'%d'.",
options->LogTimeGranularity, granularity);
- set_log_time_granularity(granularity);
+ if (!validate_only)
+ set_log_time_granularity(granularity);
} else {
- set_log_time_granularity(options->LogTimeGranularity);
+ if (!validate_only)
+ set_log_time_granularity(options->LogTimeGranularity);
}
ok = 1;