Merge pull request #5696 from BOINC/dpa_server_status

server status page: fix PHP warning
This commit is contained in:
Vitalii Koshura 2024-07-19 11:01:38 +02:00 committed by GitHub
commit 1b17d51230
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -256,10 +256,12 @@ function show_status_xml($x) {
item_xml("name", $app->name);
item_xml("unsent", $app->unsent);
item_xml("in_progress", $app->in_progress);
item_xml("avg_runtime", $app->info->avg);
item_xml("min_runtime", $app->info->min);
item_xml("max_runtime", $app->info->max);
item_xml("users", $app->info->users);
if ($app->info) {
item_xml("avg_runtime", $app->info->avg);
item_xml("min_runtime", $app->info->min);
item_xml("max_runtime", $app->info->max);
item_xml("users", $app->info->users);
}
echo "</app>\n";
}
echo "</tasks_by_app>