mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc_samples/; revision=15421
This commit is contained in:
parent
3c9af3d960
commit
1ee13f3448
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue