commit a1209fa5ea992d2dc55b522b6ad2f3b06bb197be Author: Karsten Loesing karsten.loesing@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());
tor-commits@lists.torproject.org