mirror of
https://github.com/webmin/webmin.git
synced 2026-09-19 03:50:39 +01:00
Don't double-count use of the same device
This commit is contained in:
@@ -324,8 +324,10 @@ foreach $m (@mounted) {
|
||||
# Don't double-count maps from the same zone pool
|
||||
next;
|
||||
}
|
||||
if ($donedevice{$m->[0]}++) {
|
||||
# Don't double-count mounts from the same device
|
||||
if ($donedevice{$m->[0]}++ ||
|
||||
$donedevice{$m->[1]}++) {
|
||||
# Don't double-count mounts from the same device, or
|
||||
# on the same directory.
|
||||
next;
|
||||
}
|
||||
my ($t, $f) = &mount::disk_space($m->[2], $m->[0]);
|
||||
|
||||
Reference in New Issue
Block a user