From 9ab67a710848dba62fda5fc2ad322612457b3d7d Mon Sep 17 00:00:00 2001 From: Frikky Date: Thu, 30 Nov 2023 21:19:06 +0100 Subject: [PATCH] More changes to fix ns --- db-connector.go | 1 - shared.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/db-connector.go b/db-connector.go index a8fe5924..0fcb0ed4 100755 --- a/db-connector.go +++ b/db-connector.go @@ -690,7 +690,6 @@ func SetCache(ctx context.Context, name string, data []byte, expiration int32) e return nil } - // Maxsize ish~ name = strings.Replace(name, " ", "_", -1) diff --git a/shared.go b/shared.go index 354daae3..16f976e4 100755 --- a/shared.go +++ b/shared.go @@ -10100,6 +10100,16 @@ func FixActionResultOutput(actionResult ActionResult) ActionResult { actionResult.CompletedAt = actionResult.CompletedAt*1000 } + if len(strconv.FormatInt(actionResult.StartedAt, 10)) == 19 { + actionResult.StartedAt = actionResult.StartedAt/1000000 + } + + if len(strconv.FormatInt(actionResult.CompletedAt, 10)) == 19 { + actionResult.CompletedAt = actionResult.CompletedAt/1000000 + } + + //log.Printf("[DEBUG] Fixed LEN: %d, %d", len(strconv.FormatInt(actionResult.StartedAt, 10)), len(strconv.FormatInt(actionResult.CompletedAt, 10))) + return actionResult }