From 4abda0748fcfdaf2ed0f637185d1606593a599d2 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 29 Oct 2010 13:47:56 +0000 Subject: fixed bugs caused by eclipse refactoring --- src/util/bandwidth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/util/bandwidth.c b/src/util/bandwidth.c index 86181ec70..5da3e9739 100644 --- a/src/util/bandwidth.c +++ b/src/util/bandwidth.c @@ -84,8 +84,8 @@ GNUNET_BANDWIDTH_value_get_available_until (struct GNUNET_BANDWIDTH_Value32NBO b #if DEBUG_BANDWIDTH GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Bandwidth has %llu bytes available until deadline in %llums\n", - (unsigned long long) ((b * deadline.abs_value + 500LL) / 1000LL), - deadline.abs_value); + (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL), + deadline.rel_value); #endif return (b * deadline.rel_value + 500LL) / 1000LL; } @@ -119,7 +119,7 @@ GNUNET_BANDWIDTH_value_get_delay_for (struct GNUNET_BANDWIDTH_Value32NBO bps, #if DEBUG_BANDWIDTH GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Bandwidth suggests delay of %llu ms for %llu bytes of traffic\n", - (unsigned long long) ret.abs_value, + (unsigned long long) ret.rel_value, (unsigned long long) size); #endif return ret; @@ -297,7 +297,7 @@ GNUNET_BANDWIDTH_tracker_get_delay (struct GNUNET_BANDWIDTH_Tracker *av, "Tracker %p delay for %u bytes is %llu ms\n", av, (unsigned int) size, - (unsigned long long) ret.abs_value); + (unsigned long long) ret.rel_value); #endif return ret; } -- cgit v1.2.3