From 6fe400babcc09c92bf4d608bf5ef64208a97ccfd Mon Sep 17 00:00:00 2001 From: xkm <150928331+dreamstarsky@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:20:57 +0800 Subject: [PATCH] remove debug log on RunCppTask.go --- internal/worker/RunCppTask.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/worker/RunCppTask.go b/internal/worker/RunCppTask.go index e9be02b..220aa87 100644 --- a/internal/worker/RunCppTask.go +++ b/internal/worker/RunCppTask.go @@ -152,8 +152,7 @@ func runCpp(ctx context.Context, task *model.Paste, cli *client.Client, tmpDir s } if usageData, err := os.ReadFile(usagePath); err == nil { var usage Usage - fmt.Println(string(usageData)) - fmt.Println(json.Unmarshal(usageData, &usage)) + json.Unmarshal(usageData, &usage) task.MemoryUsageKb = int(usage.MaxMemory) task.ExecutionTimeMs = int(usage.RealTime * 1000) }