check
[oweals/gnunet.git] / src / include / gnunet_bandwidth_lib.h
index 7dfbb15433bd169445f37481badcd42ea7daae7d..43e75ed0a3e7c88e70db1720d78a9941bd583f36 100644 (file)
@@ -62,7 +62,7 @@ struct GNUNET_BANDWIDTH_Tracker
   /**
    * Number of bytes consumed since we last updated the tracker.
    */
-  uint64_t consumption_since_last_update__;
+  int64_t consumption_since_last_update__;
 
   /**
    * Time when we last updated the tracker.
@@ -93,6 +93,12 @@ struct GNUNET_BANDWIDTH_Value32NBO
 GNUNET_BANDWIDTH_value_init (uint32_t bytes_per_second);
 
 
+/**
+ * Maximum possible bandwidth value.
+ */
+#define GNUNET_BANDWIDTH_VALUE_MAX GNUNET_BANDWIDTH_value_init(UINT32_MAX)
+
+
 /**
  * At the given bandwidth, calculate how much traffic will be
  * available until the given deadline.