mirror of
https://github.com/torproject/collector.git
synced 2024-11-23 09:29:46 +00:00
Remove redundant cast.
This commit is contained in:
parent
a9ebc71f75
commit
be14c1f065
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user