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

Loading…
Cancel
Save