Skip to content

Commit 508ca27

Browse files
torcolvinCopilot
andauthored
Update rest/sgcollect.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d8cda54 commit 508ca27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest/sgcollect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (sg *sgCollect) getToken(headers http.Header) string {
206206
// hasValidToken checks if the provided headers contain a valid token for sgcollect_info.
207207
func (sg *sgCollect) hasValidToken(ctx context.Context, token string) bool {
208208
if time.Since(sg.tokenAge) > sgcollectTokenTimeout {
209-
base.DebugfCtx(ctx, base.KeyAdmin, "sgcollect_info token has expired after %d secs", time.Since(sg.tokenAge)*time.Second)
209+
base.DebugfCtx(ctx, base.KeyAdmin, "sgcollect_info token has expired after %.2f secs", time.Since(sg.tokenAge).Seconds())
210210
return false
211211
}
212212
return token == sg.token

0 commit comments

Comments
 (0)