mirror of https://github.com/BOINC/boinc.git
- client: Add offset to LTD of non-eligible projects
only if the offset is positive. - client: some cmdline args set members of config. However, config was being cleared after cmdline args were parsed, so these args had no effect. Instead, clear config before parsing cmdline svn path=/trunk/boinc/; revision=19776
This commit is contained in:
parent
ce3f3f1cfe
commit
fb4797adfd
|
@ -9651,3 +9651,16 @@ David 3 Dec 2009
|
|||
wxPieCtrl.cpp
|
||||
lib/
|
||||
util.cpp
|
||||
|
||||
David 3 Dec 2009
|
||||
- client: Add offset to LTD of non-eligible projects
|
||||
only if the offset is positive.
|
||||
- client: some cmdline args set members of config.
|
||||
However, config was being cleared after cmdline args were parsed,
|
||||
so these args had no effect.
|
||||
Instead, clear config before parsing cmdline
|
||||
|
||||
client/
|
||||
work_fetch.cpp
|
||||
main.cpp
|
||||
log_flags.cpp
|
||||
|
|
|
@ -257,7 +257,10 @@ int CONFIG::parse_options(XML_PARSER& xp) {
|
|||
string s;
|
||||
int n;
|
||||
|
||||
clear();
|
||||
//clear();
|
||||
// don't do this because some options are set by cmdline args,
|
||||
// which are parsed first
|
||||
|
||||
while (!xp.get(tag, sizeof(tag), is_tag)) {
|
||||
if (!is_tag) {
|
||||
msg_printf(NULL, MSG_USER_ERROR,
|
||||
|
|
|
@ -208,6 +208,7 @@ static void init_core_client(int argc, char** argv) {
|
|||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
|
||||
config.clear();
|
||||
gstate.parse_cmdline(argc, argv);
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -714,6 +714,7 @@ void RSC_WORK_FETCH::update_debts() {
|
|||
p = gstate.projects[i];
|
||||
if (p->non_cpu_intensive) continue;
|
||||
RSC_PROJECT_WORK_FETCH& w = project_state(p);
|
||||
if (w.debt_eligible(p, *this) && offset < 0) continue;
|
||||
w.debt += offset;
|
||||
if (w.debt > 0) w.debt = 0;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,9 @@ function show_pictures() {
|
|||
function show_download($pname) {
|
||||
echo "
|
||||
<table cellpadding=10><tr><td valign=top>
|
||||
".tra("BOINC is a program that lets you donate your idle computer time to science projects like SETI@home, Climateprediction.net, Rosetta@home, World Community Grid, and many others. <p> After installing BOINC on your computer, you can connect it to as many of these projects as you like.").
|
||||
".tra("BOINC is a program that lets you donate your idle computer time to science projects like SETI@home, Climateprediction.net, Rosetta@home, World Community Grid, and many others. <p> After installing BOINC on your computer, you can connect it to as many of these projects as you like.")
|
||||
."<p>"
|
||||
.tra("You may run this software on a computer only if you own the computer or have the permission of its owner.").
|
||||
"<p>"
|
||||
;
|
||||
if ($_GET['foo']) $pname = null;
|
||||
|
|
Loading…
Reference in New Issue