It works fine in Windows. Something strange is happing on Linux. The
progress bar is multiplied by 100.
Apparently this fraction complete reporting is not working properly. I
have modified the code to report a couple relevant variables
478:void send_status_message(
479- TASK& task, double frac_done, double checkpoint_cpu_time
480-) {
481- double current_cpu_time = task.starting_cpu + task.cpu_time();
482- fprintf(stderr,"\n frac_done: %lf\n",frac_done);
483-
484- boinc_report_app_status(
485- current_cpu_time,
486- checkpoint_cpu_time,
487- frac_done
488- );
588: poll_boinc_messages(task);
589- double task_fraction_done = task.fraction_done();
590- double delta = task_fraction_done*task.weight;
591- fprintf(stderr,"\ntask_fraction_done %lf\nweight:
%lf\ndelta: %lf\n",task_fraction_done,task.weight,delta);
592- send_status_message(task, frac_done+delta, checkpoint_cpu_time);
593- if (task.has_checkpointed()) {
594- checkpoint_cpu_time = task.starting_cpu + task.cpu_time();
595- write_checkpoint(i, checkpoint_cpu_time);
596- }
597- boinc_sleep(POLL_PERIOD);
598- }
When this runs it updates the fraction complete
task_fraction_done 0.000000
weight: 99.000000
delta: 0.000000
frac_done: 0.000000
step 100, will finish Sun Dec 13 12:47:54 2009
task_fraction_done 0.044444
weight: 99.000000
delta: 4.399996
frac_done: 4.399996
but the actual progress bar reports 3900%
--
Jack
http://drugdiscoveryathome.com
http://hydrogenathome.org
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.