Hi,
I noticed that the value for "opaque" in the results database is always 0.
While the value is written to workunits, it is not transferred to results.
I'm not shure if this a bug or a feature, but attached there is a diff to fix
this (at least for me:) )
Regards
Jürgen Neumann
-------------------------------------------------
diff -NurEbB -X exclude_pattern 26158/db/boinc_db.cpp 26158.wc/db/boinc_db.cpp
--- 26158/db/boinc_db.cpp 2013-01-25 10:04:16.000000000 +0100
+++ 26158.wc/db/boinc_db.cpp 2013-02-04 09:54:47.969999000 +0100
@@ -1298,6 +1298,7 @@
priority = atoi(r[i++]);
hr_class = atoi(r[i++]);
batch = atoi(r[i++]);
+ opaque = atof(r[i++]);
app_version_id = atoi(r[i++]);
transitioner_flags = atoi(r[i++]);
@@ -1358,6 +1359,7 @@
" wu.priority, "
" wu.hr_class, "
" wu.batch, "
+ " wu.opaque, "
" wu.app_version_id, "
" wu.transitioner_flags, "
" res.id, "
diff -NurEbB -X exclude_pattern 26158/db/boinc_db.h 26158.wc/db/boinc_db.h
--- 26158/db/boinc_db.h 2013-01-25 10:04:16.000000000 +0100
+++ 26158.wc/db/boinc_db.h 2013-02-04 09:58:04.972863000 +0100
@@ -53,6 +53,7 @@
int priority;
int hr_class;
int batch;
+ double opaque;
int app_version_id;
int transitioner_flags;
int res_id; // This is the RESULT ID
diff -NurEbB -X exclude_pattern 26158/tools/backend_lib.cpp
26158.wc/tools/backend_lib.cpp
--- 26158/tools/backend_lib.cpp 2013-01-25 10:05:18.000000000 +0100
+++ 26158.wc/tools/backend_lib.cpp 2013-02-04 13:26:39.126734000 +0100
@@ -97,6 +97,7 @@
result.claimed_credit = 0;
result.granted_credit = 0;
result.appid = wu.appid;
+ result.opaque = wu.opaque;
result.priority = wu.priority;
result.batch = wu.batch;
}
@@ -120,6 +121,7 @@
wu.appid = ti.appid;
wu.priority = ti.priority;
wu.batch = ti.batch;
+ wu.opaque=ti.opaque;
return create_result(
wu,
result_template_filename,
diff -NurEbB -X exclude_pattern 26158/db/boinc_db.cpp 26158.wc/db/boinc_db.cpp
--- 26158/db/boinc_db.cpp 2013-01-25 10:04:16.000000000 +0100
+++ 26158.wc/db/boinc_db.cpp 2013-02-04 09:54:47.969999000 +0100
@@ -1298,6 +1298,7 @@
priority = atoi(r[i++]);
hr_class = atoi(r[i++]);
batch = atoi(r[i++]);
+ opaque = atof(r[i++]);
app_version_id = atoi(r[i++]);
transitioner_flags = atoi(r[i++]);
@@ -1358,6 +1359,7 @@
" wu.priority, "
" wu.hr_class, "
" wu.batch, "
+ " wu.opaque, "
" wu.app_version_id, "
" wu.transitioner_flags, "
" res.id, "
diff -NurEbB -X exclude_pattern 26158/db/boinc_db.h 26158.wc/db/boinc_db.h
--- 26158/db/boinc_db.h 2013-01-25 10:04:16.000000000 +0100
+++ 26158.wc/db/boinc_db.h 2013-02-04 09:58:04.972863000 +0100
@@ -53,6 +53,7 @@
int priority;
int hr_class;
int batch;
+ double opaque;
int app_version_id;
int transitioner_flags;
int res_id; // This is the RESULT ID
diff -NurEbB -X exclude_pattern 26158/tools/backend_lib.cpp 26158.wc/tools/backend_lib.cpp
--- 26158/tools/backend_lib.cpp 2013-01-25 10:05:18.000000000 +0100
+++ 26158.wc/tools/backend_lib.cpp 2013-02-04 13:26:39.126734000 +0100
@@ -97,6 +97,7 @@
result.claimed_credit = 0;
result.granted_credit = 0;
result.appid = wu.appid;
+ result.opaque = wu.opaque;
result.priority = wu.priority;
result.batch = wu.batch;
}
@@ -120,6 +121,7 @@
wu.appid = ti.appid;
wu.priority = ti.priority;
wu.batch = ti.batch;
+ wu.opaque=ti.opaque;
return create_result(
wu,
result_template_filename,
_______________________________________________
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.