mirror of https://github.com/BOINC/boinc.git
web: fix bug that shows 21 tasks instead of 20. Fixes #1853.
This commit is contained in:
parent
8872445b57
commit
ce4cd94644
|
@ -45,10 +45,10 @@ if (!$show_names) $show_names=0;
|
||||||
|
|
||||||
$s = $state_name[$state];
|
$s = $state_name[$state];
|
||||||
if ($appid) {
|
if ($appid) {
|
||||||
$app = BoincApp::lookup_id($appid);
|
$app = BoincApp::lookup_id($appid);
|
||||||
if ($app) {
|
if ($app) {
|
||||||
$s .= " $app->user_friendly_name ";
|
$s .= " $app->user_friendly_name ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($hostid) {
|
if ($hostid) {
|
||||||
|
@ -92,11 +92,12 @@ $info->state = $state;
|
||||||
$info->appid = $appid;
|
$info->appid = $appid;
|
||||||
|
|
||||||
$nav = result_navigation($info, $clause);
|
$nav = result_navigation($info, $clause);
|
||||||
|
$i = 0;
|
||||||
if (count($results)) {
|
if (count($results)) {
|
||||||
echo $nav;
|
echo $nav;
|
||||||
result_table_start(true, $show_host_link, $info);
|
result_table_start(true, $show_host_link, $info);
|
||||||
foreach ($results as $result) {
|
foreach ($results as $result) {
|
||||||
if ($i >= $results_per_page) break;
|
if ($i++ >= $results_per_page) break;
|
||||||
show_result_row($result, true, $show_host_link, $show_names);
|
show_result_row($result, true, $show_host_link, $show_names);
|
||||||
}
|
}
|
||||||
end_table();
|
end_table();
|
||||||
|
|
Loading…
Reference in New Issue