Skip to content

Commit

Permalink
Missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
parg committed Sep 26, 2023
1 parent 3534dd9 commit 9b06af7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion core/src/com/biglybt/core/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -3965,6 +3965,13 @@ public static long getUsableSpace(File f)

public static File[]
listRootsWithTimeout()
{
return( listRootsWithTimeout( 250 ));
}

public static File[]
listRootsWithTimeout(
long timeout )
{
long now = SystemTime.getMonotonousTime();

Expand Down Expand Up @@ -4010,7 +4017,7 @@ public static long getUsableSpace(File f)
}
}

sem.reserve( 250 );
sem.reserve( timeout );

return( last_roots );
}
Expand Down
6 changes: 6 additions & 0 deletions uis/src/com/biglybt/ui/swt/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7081,4 +7081,10 @@ public void handleEvent(Event e) {
{
return( FileUtil.lengthWithTimeout( file, 250 ));
}

public static File[]
listFileRootsWithTimeout()
{
return( FileUtil.listRootsWithTimeout( 250 ));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7959,7 +7959,7 @@ public void updateUI() {
diskFreeInfoRefreshRunning = true;
diskFreeInfoRefreshPending = false;

final HashSet FSroots = new HashSet(Arrays.asList(FileUtil.listRootsWithTimeout()));
final HashSet FSroots = new HashSet(Arrays.asList(Utils.listFileRootsWithTimeout()));
final HashMap partitions = new HashMap();

for ( TorrentOpenOptions too: torrentOptionsMulti ){
Expand Down

0 comments on commit 9b06af7

Please sign in to comment.