From 857a558544235e4094566feb393062e3410a4028 Mon Sep 17 00:00:00 2001 From: Caj Larsson Date: Fri, 6 May 2022 21:27:39 +0800 Subject: [PATCH] Useragent statistics complete #3 --- dataswamp/services.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dataswamp/services.go b/dataswamp/services.go index 27ae628..c35e032 100644 --- a/dataswamp/services.go +++ b/dataswamp/services.go @@ -117,6 +117,9 @@ func (s SwampFileService) OpenOutFile(ref swampfile.FileReference) (swampfile.Sw return nil, err } + ns.Download = ns.Download.Add(f.Size()) + s.namespace_repo.Update(ns.ID, *ns) + return f, nil }