From a98c741f7cd7a13b3b4e1eb4f9147543e87f6754 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 4 Jan 2024 14:54:16 +0800 Subject: [PATCH] by Robin at 20240104; fix divide by 2 --- app/mix/service/scripts_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mix/service/scripts_service.go b/app/mix/service/scripts_service.go index 8bede1ec..0425cfd4 100644 --- a/app/mix/service/scripts_service.go +++ b/app/mix/service/scripts_service.go @@ -30,5 +30,6 @@ func (s *ScriptsService) QueryCallCount(url string, logpath string) (count int, str = strings.ReplaceAll(str, "\n", "") str = strings.ReplaceAll(str, "\r", "") count, err = strconv.Atoi(str) + count = count / 2 return }