From e2ea97e80256cd4998c147f77d8acd9979e3d110 Mon Sep 17 00:00:00 2001 From: perennial Date: Mon, 21 Oct 2024 16:33:13 +1100 Subject: [PATCH] truncate proxy check duration --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6e6fcc9..702658d 100644 --- a/main.go +++ b/main.go @@ -62,8 +62,11 @@ func main() { // Wait for the first proxy check to complete auditor.SugaredLogger.Info("Waiting for initial proxy check to complete...") wgFirstCheck.Wait() - duration := time.Since(startTime) // Calculate the duration - auditor.SugaredLogger.Infof("Initial proxy check completed in %v.", duration) + + d := time.Since(startTime) + truncated := d.Truncate(time.Millisecond) + + auditor.SugaredLogger.Infof("Initial proxy check completed in %v.", truncated) }() } else { auditor.SugaredLogger.Infof("ProxyCheckEnabled set to %t, skipping proxy checker initialization.", config.GlobalConfig.ProxyCheckEnabled)