aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-29 13:47:56 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-29 13:47:56 +0000
commit4abda0748fcfdaf2ed0f637185d1606593a599d2 (patch)
tree8c63f27eb961b4775791fd87f786958ca87660aa
parentdc87f102d4101926122b473e20ffb7d771f840d7 (diff)
downloadgnunet-4abda0748fcfdaf2ed0f637185d1606593a599d2.tar.gz
gnunet-4abda0748fcfdaf2ed0f637185d1606593a599d2.zip
fixed bugs caused by eclipse refactoring
-rw-r--r--src/util/bandwidth.c8
1 files changed, 4 insertions, 4 deletions
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
84#if DEBUG_BANDWIDTH 84#if DEBUG_BANDWIDTH
85 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 85 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
86 "Bandwidth has %llu bytes available until deadline in %llums\n", 86 "Bandwidth has %llu bytes available until deadline in %llums\n",
87 (unsigned long long) ((b * deadline.abs_value + 500LL) / 1000LL), 87 (unsigned long long) ((b * deadline.rel_value + 500LL) / 1000LL),
88 deadline.abs_value); 88 deadline.rel_value);
89#endif 89#endif
90 return (b * deadline.rel_value + 500LL) / 1000LL; 90 return (b * deadline.rel_value + 500LL) / 1000LL;
91} 91}
@@ -119,7 +119,7 @@ GNUNET_BANDWIDTH_value_get_delay_for (struct GNUNET_BANDWIDTH_Value32NBO bps,
119#if DEBUG_BANDWIDTH 119#if DEBUG_BANDWIDTH
120 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 120 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
121 "Bandwidth suggests delay of %llu ms for %llu bytes of traffic\n", 121 "Bandwidth suggests delay of %llu ms for %llu bytes of traffic\n",
122 (unsigned long long) ret.abs_value, 122 (unsigned long long) ret.rel_value,
123 (unsigned long long) size); 123 (unsigned long long) size);
124#endif 124#endif
125 return ret; 125 return ret;
@@ -297,7 +297,7 @@ GNUNET_BANDWIDTH_tracker_get_delay (struct GNUNET_BANDWIDTH_Tracker *av,
297 "Tracker %p delay for %u bytes is %llu ms\n", 297 "Tracker %p delay for %u bytes is %llu ms\n",
298 av, 298 av,
299 (unsigned int) size, 299 (unsigned int) size,
300 (unsigned long long) ret.abs_value); 300 (unsigned long long) ret.rel_value);
301#endif 301#endif
302 return ret; 302 return ret;
303} 303}