[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master 3/3] Make LogTimeGranularity respect validate_only
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon, 8 Nov 2010 12:40:26 -0500
Subject: Make LogTimeGranularity respect validate_only
Commit: 152c9cba65b85fb034f10b3485b5011ecff06f36
---
src/or/config.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/or/config.c b/src/or/config.c
index 0251ef4..25f07ed 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;
--
1.7.1