science-ation/admin/judges_scheduler_status_output.php

17 lines
423 B
PHP
Raw Normal View History

<?
include '../data/config.inc.php';
include '../common.inc.php';
$q = $pdo->prepare("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_percent'");
2024-12-10 19:40:23 -05:00
$q->execute();
$r = $q->fetch(PDO::FETCH_OBJ);
$percent = $r->val;
$q = $pdo->prepare("SELECT val FROM config WHERE year='0' AND var='judge_scheduler_activity'");
2024-12-10 19:40:23 -05:00
$q->execute();
$r = $q->fetch(PDO::FETCH_OBJ);
$status = $r->val;
echo "$percent:$status\n";
?>