CPU list: fix Totals row

This commit is contained in:
David Anderson 2014-05-06 13:13:24 -07:00
parent c25ce3177c
commit 4a52c8708d
1 changed files with 2 additions and 2 deletions

View File

@ -98,11 +98,11 @@ function show_cpu_list($data) {
"row$i"
);
$total_nhosts += $d->nhosts;
$total_gflops += $d->mean_ncores*$d->p_fpops/1e9;
$total_gflops += $d->nhosts*$d->mean_ncores*$d->p_fpops/1e9;
$i = 1-$i;
}
row_array(
array("Total", $total_nhosts, "", "", number_format($total_gflops, 2)),
array("Total", number_format($total_nhosts, 0). " computers", "", "", number_format($total_gflops/1e3, 2)." TeraFLOPS"),
"row$i"
);
end_table();