예제 #1
0
파일: sim.cpp 프로젝트: drshawnkwang/boinc
// write the timeline row(s) for this time
//
void html_rec() {
    if (html_msg.size()) {
        html_write_message();
        html_msg = "";
    }

    if (!active) {
        fprintf(html_out,
            "<tr>"
            "    <td valign=top>%s</td>"
            "    <td colspan=99 valign=top bgcolor=#aaaaaa>BOINC not running</td>"
            "</tr>",
            sim_time_string(gstate.now)
        );
    } else {
        html_device_header();
        fprintf(html_out,
            "<tr><td> </td>\n"
        );
        show_resource(0);
        if (gpu_active) {
            for (int i=1; i<coprocs.n_rsc; i++) {
                show_resource(i);
            }
        } else {
            for (int i=1; i<coprocs.n_rsc; i++) {
                fprintf(html_out, "<td valign=top bgcolor=#aaaaaa>GPUs disabled</td>");
            }
        }
        fprintf(html_out,
            "</tr>\n"
        );
    }
}
예제 #2
0
void ResourceViewerView::on_selection_changed(clan::ListViewSelection selection)
{
	ResourceItem *resource_item = get_selected_resource_item();
	if(resource_item)
		show_resource(resource_item);
}