diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:14:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:14:01 +0000 |
commit | a6a4bf9797ecf078179a102f52d1e30a4987bf03 (patch) | |
tree | c73b72bbf6552b95fbc43a48d3e2296cf16ddb50 /src/arm | |
parent | 383eec1895fff4a83f26bb8244d86571dd5baef9 (diff) | |
download | gnunet-a6a4bf9797ecf078179a102f52d1e30a4987bf03.tar.gz gnunet-a6a4bf9797ecf078179a102f52d1e30a4987bf03.zip |
-converting more places to use STRINGS_relative_time_to_string
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/arm_api.c | 4 | ||||
-rw-r--r-- | src/arm/gnunet-service-arm.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 7c18c617e..328ef3f0b 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -533,7 +533,7 @@ GNUNET_ARM_start_service (struct GNUNET_ARM_Handle *h, | |||
533 | 533 | ||
534 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 534 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
535 | "Asked to start service `%s' within %s\n", service_name, | 535 | "Asked to start service `%s' within %s\n", service_name, |
536 | GNUNET_STRINGS_relative_time_to_string (timeout)); | 536 | GNUNET_STRINGS_relative_time_to_string (timeout, GNUNET_NO)); |
537 | if (0 == strcasecmp ("arm", service_name)) | 537 | if (0 == strcasecmp ("arm", service_name)) |
538 | { | 538 | { |
539 | slen = strlen ("arm") + 1; | 539 | slen = strlen ("arm") + 1; |
@@ -607,7 +607,7 @@ GNUNET_ARM_stop_service (struct GNUNET_ARM_Handle *h, | |||
607 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 607 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
608 | "Stopping service `%s' within %s\n", | 608 | "Stopping service `%s' within %s\n", |
609 | service_name, | 609 | service_name, |
610 | GNUNET_STRINGS_relative_time_to_string (timeout)); | 610 | GNUNET_STRINGS_relative_time_to_string (timeout, GNUNET_NO)); |
611 | if (h->client == NULL) | 611 | if (h->client == NULL) |
612 | { | 612 | { |
613 | client = GNUNET_CLIENT_connect ("arm", h->cfg); | 613 | client = GNUNET_CLIENT_connect ("arm", h->cfg); |
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index dab38eaf3..21e86c770 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c | |||
@@ -983,9 +983,9 @@ maint_child_death (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
983 | if (0 != pos->killed_at.abs_value) | 983 | if (0 != pos->killed_at.abs_value) |
984 | { | 984 | { |
985 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 985 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
986 | _("Service `%s' took %llu ms to terminate\n"), | 986 | _("Service `%s' took %s to terminate\n"), |
987 | pos->name, | 987 | pos->name, |
988 | GNUNET_TIME_absolute_get_duration (pos->killed_at).rel_value); | 988 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (pos->killed_at), GNUNET_YES)); |
989 | } | 989 | } |
990 | GNUNET_OS_process_destroy (pos->proc); | 990 | GNUNET_OS_process_destroy (pos->proc); |
991 | pos->proc = NULL; | 991 | pos->proc = NULL; |