[tor-commits] [metrics-lib/master] Remove unnecessary cast.
karsten at torproject.org
karsten at torproject.org
Wed Nov 20 16:47:55 UTC 2019
commit a1209fa5ea992d2dc55b522b6ad2f3b06bb197be
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Wed Nov 20 16:39:33 2019 +0100
Remove unnecessary cast.
---
.../java/org/torproject/descriptor/benchmark/MeasurePerformance.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/torproject/descriptor/benchmark/MeasurePerformance.java b/src/test/java/org/torproject/descriptor/benchmark/MeasurePerformance.java
index cf85e22..80d9792 100644
--- a/src/test/java/org/torproject/descriptor/benchmark/MeasurePerformance.java
+++ b/src/test/java/org/torproject/descriptor/benchmark/MeasurePerformance.java
@@ -98,7 +98,7 @@ public class MeasurePerformance {
continue;
}
ServerDescriptor serverDescriptor = (ServerDescriptor) descriptor;
- sumAdvertisedBandwidth += (long) Math.min(Math.min(
+ sumAdvertisedBandwidth += Math.min(Math.min(
serverDescriptor.getBandwidthRate(),
serverDescriptor.getBandwidthBurst()),
serverDescriptor.getBandwidthObserved());
More information about the tor-commits
mailing list