svn path=/trunk/boinc_samples/; revision=15421

This commit is contained in:
David Anderson 2008-06-17 20:44:17 +00:00
parent 3c9af3d960
commit 1ee13f3448
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ struct TASK {
HANDLE pid_handle; HANDLE pid_handle;
DWORD pid; DWORD pid;
HANDLE thread_handle; HANDLE thread_handle;
_stat last_stat; // mod time of checkpoint file struct _stat last_stat; // mod time of checkpoint file
#else #else
int pid; int pid;
struct stat last_stat; struct stat last_stat;
@ -509,7 +509,7 @@ int main(int argc, char** argv) {
for (i=0; i<tasks.size(); i++) { for (i=0; i<tasks.size(); i++) {
TASK& task = tasks[i]; TASK& task = tasks[i];
w += task.weight; w += task.weight;
if (i<ntasks) continue; if ((int)i<ntasks) continue;
double frac_done = w/total_weight; double frac_done = w/total_weight;
task.starting_cpu = cpu; task.starting_cpu = cpu;