Skip to content

Modern Docker Management, Designed for Everyone

chore: fix context check

Kyle Mendell937b73197598
diff --git a/backend/internal/api/system_handler.go b/backend/internal/api/system_handler.go
index 11a5944dd..b8bc17dd7 100644
--- a/backend/internal/api/system_handler.go
+++ b/backend/internal/api/system_handler.go
@@ -410,7 +410,7 @@ func (h *SystemHandler) Stats(c *gin.Context) {
memTotal = memInfo.Total
}
- diskUsagePath := h.getDiskUsagePath(c.Request.Context())
+ diskUsagePath := h.getDiskUsagePath(ctx)
diskInfo, err := disk.Usage(diskUsagePath)
if err != nil || diskInfo == nil || diskInfo.Total == 0 {
if diskUsagePath != "/" {