Commit 61ef353e22446fbd66ad78f0cbcdd80b3cf5d75e

Thomas de Grivel 2022-01-27T11:04:21

fix disk usage

diff --git a/lib/kmxgit_web/controllers/admin/dashboard_controller.ex b/lib/kmxgit_web/controllers/admin/dashboard_controller.ex
index b79c4ea..56f2e63 100644
--- a/lib/kmxgit_web/controllers/admin/dashboard_controller.ex
+++ b/lib/kmxgit_web/controllers/admin/dashboard_controller.ex
@@ -8,7 +8,7 @@ defmodule KmxgitWeb.Admin.DashboardController do
 
   def index(conn, _params) do
     conn
-    |> assign(:disk_usage, GitManager.du_ks("priv/git"))
+    |> assign(:disk_usage, GitManager.du_ks("priv/git/"))
     |> assign(:org_count, OrganisationManager.count_organisations())
     |> assign(:page_title, gettext "Dashboard")
     |> assign(:repo_count, RepositoryManager.count_repositories())
diff --git a/lib/kmxgit_web/controllers/page_controller.ex b/lib/kmxgit_web/controllers/page_controller.ex
index 3f216cd..9dcf406 100644
--- a/lib/kmxgit_web/controllers/page_controller.ex
+++ b/lib/kmxgit_web/controllers/page_controller.ex
@@ -33,7 +33,7 @@ defmodule KmxgitWeb.PageController do
       redirect(conn, to: Routes.page_path(conn, :new_admin))
     else
       conn
-      |> assign(:disk_usage, GitManager.du_ks("priv/git"))
+      |> assign(:disk_usage, GitManager.du_ks("priv/git/"))
       |> assign(:git_ssh_url, Application.get_env(:kmxgit, :git_ssh_url))
       |> assign(:org_count, OrganisationManager.count_organisations())
       |> assign(:repo_count, RepositoryManager.count_repositories())