From 854e6976858b8df5de47cad003aab4b458e89c12 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 28 Jan 2025 15:39:54 +0300 Subject: [PATCH] Adding tracking of cmd start timestamp for a Task --- plan.inc.php | 1 + task.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/plan.inc.php b/plan.inc.php index 84645b9..a1e502c 100644 --- a/plan.inc.php +++ b/plan.inc.php @@ -333,6 +333,7 @@ class Plan $task->getCmd(), $task->getCmdArgs() ); + $task->ext_cmd_start_time = time(); } catch(Exception $e) { diff --git a/task.inc.php b/task.inc.php index 28896ce..2c8adaa 100644 --- a/task.inc.php +++ b/task.inc.php @@ -79,6 +79,7 @@ class Task public float $start_time = 0; public float $reset_time = 0; + public float $ext_cmd_start_time = 0; public float $last_progress = 0; public int $last_done_arg_idx = -1;