return tra("Missing platform");
        }
        $pc = strlen($av->plan_class) ? "({$av->plan_class})" : "";
        $v = number_format($av->version_num / 100, 2);
        return "{$app->user_friendly_name} {$v} {$platform->name} {$pc}";
    }
}
function show_hav($hav)
{
    row1(av_desc($hav->app_version_id));
    row2(tra("Number of tasks completed"), $hav->et_n);
    row2(tra("Max tasks per day"), $hav->max_jobs_per_day);
    row2(tra("Number of tasks today"), $hav->n_jobs_today);
    row2(tra("Consecutive valid tasks"), $hav->consecutive_valid);
    $x = number_format($hav->turnaround_avg / 86400, 2);
    if ($hav->et_avg) {
        $gflops = number_format(1.0E-9 / $hav->et_avg, 2);
        row2(tra("Average processing rate"), $gflops . " GFLOPS");
    }
    row2(tra("Average turnaround time"), "{$x} days");
}
$hostid = get_int('hostid');
$havs = BoincHostAppVersion::enum("host_id={$hostid}");
page_head(tra("Application details for host %1", $hostid));
start_table();
foreach ($havs as $hav) {
    //if (!$hav->pfc_n) continue;
    show_hav($hav);
}
end_table();
page_tail();
Exemplo n.º 2
0
    if (!$desc) {
        return;
    }
    row1($desc);
    row2(tra("Number of tasks completed"), $hav->et_n);
    row2(tra("Max tasks per day"), $hav->max_jobs_per_day);
    row2(tra("Number of tasks today"), $hav->n_jobs_today);
    row2(tra("Consecutive valid tasks"), $hav->consecutive_valid);
    $x = number_format($hav->turnaround_avg / 86400, 2);
    if ($hav->et_avg) {
        $gflops = number_format(1.0E-9 / $hav->et_avg, 2);
        row2(tra("Average processing rate"), $gflops . " GFLOPS");
    }
    row2(tra("Average turnaround time"), "{$x} days");
}
$hostid = get_int('hostid');
$show_dep = get_int('show_dep', true);
$havs = BoincHostAppVersion::enum("host_id={$hostid}");
page_head(tra("Application details for host %1", $hostid));
start_table();
foreach ($havs as $hav) {
    //if (!$hav->pfc_n) continue;
    show_hav($hav, $show_dep);
}
end_table();
if ($show_dep) {
    show_button("host_app_versions.php?hostid={$hostid}", "Show active versions");
} else {
    show_button("host_app_versions.php?hostid={$hostid}&show_dep=1", "Show all versions");
}
page_tail();