diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:36:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 19:36:14 +0000 |
commit | 9cefd9c5522797b132749ca7d99a930007d28347 (patch) | |
tree | 63aa5de219bbd5f0d23f5f0affd418eee5bdd494 /src/util/bandwidth.c | |
parent | a6a4bf9797ecf078179a102f52d1e30a4987bf03 (diff) | |
download | gnunet-9cefd9c5522797b132749ca7d99a930007d28347.tar.gz gnunet-9cefd9c5522797b132749ca7d99a930007d28347.zip |
-converting more places to use STRINGS_relative_time_to_string
Diffstat (limited to 'src/util/bandwidth.c')
-rw-r--r-- | src/util/bandwidth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c index 9d679493a..60cb50529 100644 --- a/src/util/bandwidth.c +++ b/src/util/bandwidth.c | |||
@@ -24,8 +24,7 @@ | |||
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_bandwidth_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_server_lib.h" | ||
29 | 28 | ||
30 | 29 | ||
31 | #define LOG(kind,...) GNUNET_log_from (kind, "util-bandwidth", __VA_ARGS__) | 30 | #define LOG(kind,...) GNUNET_log_from (kind, "util-bandwidth", __VA_ARGS__) |
@@ -83,9 +82,9 @@ GNUNET_BANDWIDTH_value_get_available_until (struct GNUNET_BANDWIDTH_Value32NBO | |||
83 | 82 | ||
84 | b = ntohl (bps.value__); | 83 | b = ntohl (bps.value__); |
85 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 84 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
86 | "Bandwidth has %llu bytes available until deadline in %llums\n", | 85 | "Bandwidth has %llu bytes available until deadline in %s\n", |
87 | (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL), | 86 | (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL), |
88 | deadline.rel_value); | 87 | GNUNET_STRINGS_relative_time_to_string (deadline, GNUNET_YES)); |
89 | return (b * deadline.rel_value + 500LL) / 1000LL; | 88 | return (b * deadline.rel_value + 500LL) / 1000LL; |
90 | } | 89 | } |
91 | 90 | ||