diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 15:21:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 15:21:02 +0000 |
commit | 26482491f9faa76ae8b98e27694c14d5140c1e69 (patch) | |
tree | 352fa609702821c24ab918d980c1b3a799c718ff /src/util/service.c | |
parent | 68fe3f5587d2e0f134357f06b72583151b36bbdd (diff) | |
download | gnunet-26482491f9faa76ae8b98e27694c14d5140c1e69.tar.gz gnunet-26482491f9faa76ae8b98e27694c14d5140c1e69.zip |
-document clock skew variable a bit more
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/service.c b/src/util/service.c index cf1002ca9..b5711972b 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -1566,17 +1566,17 @@ GNUNET_SERVICE_run (int argc, char *const *argv, const char *serviceName, | |||
1566 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1566 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1567 | "Service `%s' runs with configuration from `%s'\n", serviceName, cfg_fn); | 1567 | "Service `%s' runs with configuration from `%s'\n", serviceName, cfg_fn); |
1568 | #endif | 1568 | #endif |
1569 | if (GNUNET_OK == | 1569 | if ( (GNUNET_OK == |
1570 | GNUNET_CONFIGURATION_get_value_number (sctx.cfg, "testing", "skew_offset", | 1570 | GNUNET_CONFIGURATION_get_value_number (sctx.cfg, "TESTING", "SKEW_OFFSET", |
1571 | &skew_offset) && | 1571 | &skew_offset)) && |
1572 | (GNUNET_OK == | 1572 | (GNUNET_OK == |
1573 | GNUNET_CONFIGURATION_get_value_number (sctx.cfg, "testing", | 1573 | GNUNET_CONFIGURATION_get_value_number (sctx.cfg, "TESTING", |
1574 | "skew_variance", &skew_variance))) | 1574 | "SKEW_VARIANCE", &skew_variance)) ) |
1575 | { | 1575 | { |
1576 | clock_offset = skew_offset - skew_variance; | 1576 | clock_offset = skew_offset - skew_variance; |
1577 | GNUNET_TIME_set_offset (clock_offset); | 1577 | GNUNET_TIME_set_offset (clock_offset); |
1578 | #if DEBUG_SERVICE | 1578 | #if DEBUG_SERVICE |
1579 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Skewing clock by %dll\n", clock_offset); | 1579 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Skewing clock by %dll ms\n", clock_offset); |
1580 | #endif | 1580 | #endif |
1581 | } | 1581 | } |
1582 | /* actually run service */ | 1582 | /* actually run service */ |