mirror of https://github.com/BOINC/boinc.git
- client: read only first 63KB of stderr.txt
- user web: default work_buf_min_days is 0, not "" html/inc/ prefs.inc client/ app_control.C svn path=/trunk/boinc/; revision=12987
This commit is contained in:
parent
bf8d4cc73c
commit
0a19dddf18
|
@ -6586,3 +6586,12 @@ David 22 June 2007
|
|||
lib/
|
||||
parse.C
|
||||
prefs.C
|
||||
|
||||
David 22 June 2007
|
||||
- client: read only first 63KB of stderr.txt
|
||||
- user web: default work_buf_min_days is 0, not ""
|
||||
|
||||
html/inc/
|
||||
prefs.inc
|
||||
client/
|
||||
app_control.C
|
||||
|
|
|
@ -565,22 +565,19 @@ bool ACTIVE_TASK::read_stderr_file() {
|
|||
std::string stderr_file;
|
||||
char path[256];
|
||||
|
||||
// truncate stderr output to 63KB;
|
||||
// it's unlikely that more than that will be useful
|
||||
//
|
||||
int max_len = 63*1024;
|
||||
|
||||
sprintf(path, "%s/%s", slot_dir, STDERR_FILE);
|
||||
if (boinc_file_exists(path) && !read_file_string(path, stderr_file)) {
|
||||
// truncate stderr output to 63KB;
|
||||
// it's unlikely that more than that will be useful
|
||||
//
|
||||
int max_len = 63*1024;
|
||||
int len = (int)stderr_file.length();
|
||||
if (len > max_len) {
|
||||
stderr_file = stderr_file.substr(len-max_len, len);
|
||||
}
|
||||
result->stderr_out += "<stderr_txt>\n";
|
||||
result->stderr_out += stderr_file;
|
||||
result->stderr_out += "\n</stderr_txt>\n";
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if (!boinc_file_exists(path)) return false;
|
||||
if (read_file_string(path, stderr_file, max_len)) return false;
|
||||
|
||||
result->stderr_out += "<stderr_txt>\n";
|
||||
result->stderr_out += stderr_file;
|
||||
result->stderr_out += "\n</stderr_txt>\n";
|
||||
return true;
|
||||
}
|
||||
|
||||
// tell a running app to reread project preferences.
|
||||
|
|
|
@ -110,7 +110,7 @@ function show_other() {
|
|||
<ul>
|
||||
<li> <a href=trac/wiki/BoincIntro/>Overview</a>
|
||||
<li> <a href=trac/wiki/SoftwareDevelopment>Software development</a>
|
||||
<li> <a href=translation.php>Translation</a> of web and GUI text
|
||||
<li> <a href=trac/wiki/TranslateIntro>Translation</a> of web and GUI text
|
||||
<li> <a href=trac/wiki/ProjectPeople>Personnel and contributors</a>
|
||||
<li> BOINC <a href=email_lists.php>email lists</a>
|
||||
<li> BOINC <a href=dev/>message boards</a>
|
||||
|
|
|
@ -686,7 +686,7 @@ switch(rand(0,5)) {
|
|||
case 1: $url_base = "http://morel.mit.edu/download/boinc/dl/"; break;
|
||||
case 2: $url_base = "http://einstein.aei.mpg.de/download/boinc/dl/"; break;
|
||||
case 3: $url_base = "http://einstein.astro.gla.ac.uk/download/boinc/dl/"; break;
|
||||
case 4: $url_base = "http://einstein.aset.psu.edu/download/boinc/dl/"; break;
|
||||
case 4: $url_base = "http://albert.gravity.psu.edu/download/boinc/dl/"; break;
|
||||
case 5: $url_base = "http://einstein.ligo.caltech.edu/download/boinc/dl/"; break;
|
||||
//case 6: $url_base = "http://einstein.phys.uwm.edu/download/boinc/dl/"; break;
|
||||
}
|
||||
|
|
|
@ -393,7 +393,7 @@ function default_prefs_global() {
|
|||
$p->cpu_scheduling_period_minutes = 60;
|
||||
$p->confirm_before_connecting = false;
|
||||
$p->hangup_if_dialed = true;
|
||||
$p->work_buf_min_days = "";
|
||||
$p->work_buf_min_days = 0;
|
||||
$p->work_buf_additional_days = 0.25;
|
||||
$p->max_cpus = 16;
|
||||
$p->cpu_usage_limit = 100;
|
||||
|
|
Loading…
Reference in New Issue