summaryrefslogtreecommitdiffstats
path: root/web/template/pkgreq_results.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/pkgreq_results.php')
-rw-r--r--web/template/pkgreq_results.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index 3d50c82..24ee877 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -34,9 +34,10 @@
<?php while (list($indx, $row) = each($results)): ?>
<?php
- $due = ($row['Open'] && time() - intval($row['RequestTS']) > $REQUEST_IDLE_TIME);
+ $idle_time = config_get_int('options', 'request_idle_time');
+ $due = ($row['Open'] && time() - intval($row['RequestTS']) > $idle_time);
if (!$due) {
- $time_left = $REQUEST_IDLE_TIME - (time() - intval($row['RequestTS']));
+ $time_left = $idle_time - (time() - intval($row['RequestTS']));
if ($time_left > 48 * 3600) {
$time_left_fmt = __("~%d days left", round($time_left / (24 * 3600)));
} elseif ($time_left > 3600) {