summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-02 13:18:48 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-02 13:18:48 +0300
commita51c1d5176d0285a4fecc6e1e84d9f7dc4abaca5 (patch)
tree4fd80f0768043d36870ffad7255a225a22eebd55 /classes
parent36f60b51d7a49fe18071f67770064cccf2cb439d (diff)
fix tasks_run never incremented
Diffstat (limited to 'classes')
-rw-r--r--classes/PluginHost.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/PluginHost.php b/classes/PluginHost.php
index e417fde1f..9bdf7c0b4 100644
--- a/classes/PluginHost.php
+++ b/classes/PluginHost.php
@@ -972,6 +972,8 @@ class PluginHost {
$rc = (int) $task['callback']();
$task_duration = time() - $task_started;
+ ++$tasks_run;
+
Debug::log("Task $task_name has finished in $task_duration seconds with RC=$rc, recording timestamp...");
if ($task_record) {