Skip to content

Commit

Permalink
Fix time to spawn format
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Jan 28, 2024
1 parent da2b9bc commit fc1b227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fc1b227

Please sign in to comment.