bugfix for the windows drive check

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4895 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
det 17 years ago
parent 4b71912e76
commit b416af7568

@ -123,9 +123,8 @@ public class diskUsage {
// some kind of *nix
if (usedOS <= UNIX_END) {
dfUnix (true);
for (int i = 0; i < allMountPoints.size(); i++){
for (int i = 0; i < allMountPoints.size(); i++)
usedVolumes.add(false);
}
checkVolumesInUseUnix ("DATA");
checkMapedSubDirs ();
@ -141,6 +140,8 @@ public class diskUsage {
} else {
checkWindowsCommandVersion();
getAllVolumesWindows ();
for (int i = 0; i < allVolumes.size(); i++)
usedVolumes.add(false);
checkStartVolume();
checkMapedSubDirs ();
for (int i = 0; i < allVolumes.size(); i++){
@ -368,7 +369,7 @@ nextLine:
return;
int index = -1;
try { index = allVolumes.indexOf(path.substring(0, 1)); } catch (IndexOutOfBoundsException e) { return; }
try { index = usedVolumes.indexOf(path.substring(0, 1)); } catch (IndexOutOfBoundsException e) { return; }
if (index > -1)
usedVolumes.set(index, true);
}

Loading…
Cancel
Save