From 0308f3b4f396b9d556492b0f0ea57ed8dde622a1 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 30 May 2022 11:55:04 +0200 Subject: correct formatting for the seconds Signed-off-by: Valery Piashchynski --- internal/cli/serve/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cli/serve') diff --git a/internal/cli/serve/command.go b/internal/cli/serve/command.go index 99c339dd..3a1e945c 100644 --- a/internal/cli/serve/command.go +++ b/internal/cli/serve/command.go @@ -98,7 +98,7 @@ func NewCommand(override *[]string, cfgFile *string, silent *bool) *cobra.Comman case e := <-errCh: return fmt.Errorf("error: %w\nplugin: %s", e.Error, e.VertexID) case <-stop: // stop the container after first signal - fmt.Printf("stop signal received, grace timeout is: %d seconds\n", uint64(containerCfg.GracePeriod.Seconds())) + fmt.Printf("stop signal received, grace timeout is: %f seconds\n", containerCfg.GracePeriod.Seconds()) if err = endureContainer.Stop(); err != nil { return fmt.Errorf("error: %w", err) -- cgit v1.2.3