Skip to content

Commit 71b4515

Browse files
author
Spine
committed
60 days of history
1 parent d7b8744 commit 71b4515

5 files changed

Lines changed: 13 additions & 12 deletions

File tree

app/TaskScheduler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private function constructAxes(array $data, string $key, array $axes, bool $time
205205
return $result;
206206
}
207207

208-
public function getRuntimeStats(int $days = 28): array {
208+
public function getRuntimeStats(int $days = 90): array {
209209
self::$db->prepared_query("
210210
SELECT date_format(pth.launch_time, '%Y-%m-%d %H:00:00') AS date,
211211
sum(pth.duration_ms) AS duration,
@@ -269,7 +269,7 @@ public function getRuntimeStats(int $days = 28): array {
269269
];
270270
}
271271

272-
public function getTaskRuntimeStats(int $taskId, int $days = 28): array {
272+
public function getTaskRuntimeStats(int $taskId, int $days = 90): array {
273273
self::$db->prepared_query("
274274
SELECT date(pth.launch_time) AS date,
275275
sum(pth.duration_ms) AS duration,

templates/admin/scheduler/edit.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% from 'macro/form.twig' import checked -%}
2-
{{ header('Periodic Task Manager') }}
2+
{{ header('Scheduler Editor') }}
33
<div class="header">
4-
<h2>Periodic Task Manager</h2>
4+
<h2><a href="?action=periodic&mode=view">Scheduler</a> › Editor</h2>
55
</div>
66
{% include 'admin/scheduler/links.twig' with {'can_edit': true} only %}
77
{% if err %}

templates/admin/scheduler/links.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<a class="brackets" href="tools.php?action=periodic&amp;mode=view">Status</a>
33
<a class="brackets" href="tools.php?action=periodic&amp;mode=stats">Statistics</a>
44
{% if can_edit %}
5-
<a class="brackets" href="tools.php?action=periodic&amp;mode=edit">Edit</a>
5+
<a class="brackets" href="tools.php?action=periodic&amp;mode=edit">Editor</a>
66
{% endif %}
77
</div>

templates/admin/scheduler/stats.twig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{ header('Periodic Task Statistics', {'js': 'vendor/highcharts,vendor/highcharts_custom'}) }}
1+
{{ header('Scheduler Statistics', {'js': 'vendor/highcharts,vendor/highcharts_custom'}) }}
22
<div class="header">
3-
<h2>Periodic Task Statistics</h2>
3+
<h2><a href="?action=periodic&mode=view">Scheduler</a> › Statistics</h2>
44
</div>
55
{% include 'admin/scheduler/links.twig' with {'can_edit': viewer.permitted('admin_periodic_task_manage')} only %}
66
<div class="box pad">
@@ -21,7 +21,7 @@
2121
</tr>
2222
</table>
2323
<br />
24-
<div id="task-averages" style="width: 100%; height: 350px;"></div>
24+
<div id="task-averages" style="width: 100%; height: 500px;"></div>
2525
<br />
2626
<div>
2727
<div id="hourly-totals" style="width: 49.5%; height: 350px; float: left; padding-right: 1%"></div>
@@ -47,12 +47,13 @@ document.addEventListener('DOMContentLoaded', function() {
4747
title: {
4848
text: 'Duration'
4949
},
50-
type: 'logarithmic'
50+
type: 'logarithmic',
5151
}, {
5252
title: {
5353
text: 'Items'
5454
},
55-
opposite: true
55+
type: 'logarithmic',
56+
opposite: true,
5657
}
5758
]
5859
});

templates/admin/scheduler/view.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{ header('Periodic Task Status') }}
1+
{{ header('Scheduler Status') }}
22
<div class="header">
3-
<h2>Periodic Task Status</h2>
3+
<h2>Scheduler › Status</h2>
44
</div>
55
{% include 'admin/scheduler/links.twig' with {'can_edit': viewer.permitted('admin_periodic_task_manage')} only %}
66
<table width="100%" id="tasks">

0 commit comments

Comments
 (0)