Skip to content

Commit

Permalink
More changes to fix ns
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed Nov 30, 2023
1 parent 630a4f3 commit 9ab67a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 10 additions & 0 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9ab67a7

Please sign in to comment.