[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [collector/master] Remove redundant cast.



commit be14c1f065b9c17dde4c1ba9de6943aec4a2299d
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Aug 20 15:55:15 2018 +0200

    Remove redundant cast.
---
 .../java/org/torproject/metrics/collector/cron/CollecTorMain.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/collector/cron/CollecTorMain.java b/src/main/java/org/torproject/metrics/collector/cron/CollecTorMain.java
index 95f7445..87cb304 100644
--- a/src/main/java/org/torproject/metrics/collector/cron/CollecTorMain.java
+++ b/src/main/java/org/torproject/metrics/collector/cron/CollecTorMain.java
@@ -138,9 +138,9 @@ public abstract class CollecTorMain extends SyncManager
    */
   public static void checkAvailableSpace(Path location) {
     try {
-      long megaBytes = (long) (Files.getFileStore(location.toFile()
+      long megaBytes = Files.getFileStore(location.toFile()
           .getAbsoluteFile().toPath().getRoot()).getUsableSpace()
-              / 1024 / 1024);
+              / 1024 / 1024;
       if (megaBytes < LIMIT_MB) {
         logger.warn("Available storage critical for {}; only {} MiB left.",
             location, megaBytes);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits