From ba39be8551a0df63fd4061a1f0ff4f267daa2851 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Thu, 2 May 2024 06:33:51 +0900 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E3=81=A1=E7=A2=BA=E8=AA=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broadcast/index.frm.php | 1 + broadcast/index.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/broadcast/index.frm.php b/broadcast/index.frm.php index 1509b10..d69e6d4 100644 --- a/broadcast/index.frm.php +++ b/broadcast/index.frm.php @@ -19,6 +19,7 @@ 伊地知ニジカ放送局 - ニジカ返答ログ + diff --git a/broadcast/index.php b/broadcast/index.php index 67438a0..90544aa 100644 --- a/broadcast/index.php +++ b/broadcast/index.php @@ -7,6 +7,11 @@ const LOG_PATH = './log.txt'; $log_data = []; +exec ("(ps -Af | grep -e '^miteruzo' | grep 'python3 main.py') && (ps -Af | grep -e '^miteruzo' | grep 'obs')", + $output, $exit_code); +$available = $exit_code === 0; +unset ($output, $exit_code); + $page = (int) ($_GET['p'] ?? 1); $length = (int) ($_GET['max'] ?? 20); $asc = ($_GET['asc'] ?? 0) != 0;