summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-02 17:54:40 +0200
committerSimon Rettberg2022-05-02 17:54:40 +0200
commit890ec384849330b3d87e31871060fbf477197ff1 (patch)
treec2359160b2251038d244da4dff2f2e334deb6ee8 /modules-available/rebootcontrol/pages
parent[rebootcontrol] Show location for automated WOL test tasks (diff)
downloadslx-admin-890ec384849330b3d87e31871060fbf477197ff1.tar.gz
slx-admin-890ec384849330b3d87e31871060fbf477197ff1.tar.xz
slx-admin-890ec384849330b3d87e31871060fbf477197ff1.zip
[rebootcontrol] Show time of execution for WOL/reboot/shutdown
Diffstat (limited to 'modules-available/rebootcontrol/pages')
-rw-r--r--modules-available/rebootcontrol/pages/task.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/rebootcontrol/pages/task.inc.php b/modules-available/rebootcontrol/pages/task.inc.php
index 691fd9e2..322b1ea9 100644
--- a/modules-available/rebootcontrol/pages/task.inc.php
+++ b/modules-available/rebootcontrol/pages/task.inc.php
@@ -95,6 +95,7 @@ class SubPage
} else {
Util::traceError('oopsie');
}
+ $job['timestamp_s'] = Util::prettyTime($job['timestamp']);
Render::addTemplate('status-' . $template, $job);
}
@@ -112,8 +113,10 @@ class SubPage
if (isset($entry['clients'])) {
$entry['clients'] = count($entry['clients']);
}
+ $entry['timestamp_s'] = Util::prettyTime($entry['timestamp']);
}
unset($entry);
+ ArrayUtil::sortByColumn($active, 'timestamp', SORT_NUMERIC | SORT_ASC);
Render::addTemplate('task-list', ['list' => $active]);
}
}