diff --git a/includes/server_stats_collect.php b/includes/server_stats_collect.php index a105041..30a170a 100644 --- a/includes/server_stats_collect.php +++ b/includes/server_stats_collect.php @@ -214,7 +214,9 @@ foreach ((array) ($config['groups'] ?? []) as $label => $paths) { $groupPaths[(string) $label] = array_values(array_map('strval', (array) $paths)); } -$sizes = stats_du(array_merge([$site], ...array_values($groupPaths))); +// Die Website als Ganzes in einem eigenen Aufruf: du zaehlt nichts doppelt und liesse ihre Unterverzeichnisse +// (Uploads, Karten, .git) sonst weg, weil sie im selben Aufruf schon im Ganzen stecken +$sizes = stats_du(array_merge(...array_values($groupPaths))) + stats_du([$site]); $groups = []; $sitePartsBytes = 0; foreach ($groupPaths as $label => $paths) {