From 152c9cba65b85fb034f10b3485b5011ecff06f36 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 8 Nov 2010 12:40:26 -0500 Subject: [PATCH] Make LogTimeGranularity respect validate_only --- src/or/config.c | 6 ++++-- 1 file 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;