落ち確認

This commit is contained in:
miteruzo
2024-05-02 06:33:51 +09:00
parent d50e23172b
commit ba39be8551
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@
<?php else: ?> <?php else: ?>
<title>伊地知ニジカ放送局 - ニジカ返答ログ</title> <title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
<?php endif ?> <?php endif ?>
<input type="hidden" id="available" value="<?= $available ? '1' : '0' ?>" />
</head> </head>
<body> <body>
+5
View File
@@ -7,6 +7,11 @@ const LOG_PATH = './log.txt';
$log_data = []; $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); $page = (int) ($_GET['p'] ?? 1);
$length = (int) ($_GET['max'] ?? 20); $length = (int) ($_GET['max'] ?? 20);
$asc = ($_GET['asc'] ?? 0) != 0; $asc = ($_GET['asc'] ?? 0) != 0;