From fc1b22716e0acd8c5bbd9e598e4d2ef679b63c4b Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Sun, 28 Jan 2024 17:27:35 +0100 Subject: [PATCH] Fix time to spawn format --- cmd/start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/start.go b/cmd/start.go index 8126575..75ee979 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -164,7 +164,8 @@ func coreStartCmd(machineChoosen string, machineID string) (string, error) { ip = activeMachineData["ip"].(string) } tts := time.Since(startTime) - message = fmt.Sprintf("%s\nTarget: %s\nTime to spawn was %s !", message, ip, tts) + formattedTts := fmt.Sprintf("%.2f", tts.Seconds()) + message = fmt.Sprintf("%s\nTarget: %s\nTime to spawn was %s seconds !", message, ip, formattedTts) return message, nil }