From e18a10ad32e5270af48fb49b91b1164869c18c86 Mon Sep 17 00:00:00 2001 From: Darren Worrall Date: Mon, 20 May 2024 13:49:11 +0100 Subject: [PATCH] Round the `finished in` second count --- app/models/shipit/task_execution_strategy/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/shipit/task_execution_strategy/default.rb b/app/models/shipit/task_execution_strategy/default.rb index 42af6c80a..3cd2998b9 100644 --- a/app/models/shipit/task_execution_strategy/default.rb +++ b/app/models/shipit/task_execution_strategy/default.rb @@ -94,7 +94,7 @@ def capture!(command) @task.write(line) end finished_at = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @task.write("pid: #{command.pid} finished in: #{finished_at - started_at} seconds\n") + @task.write("pid: #{command.pid} finished in: #{(finished_at - started_at).round(3)} seconds\n") command.success? end