Bug fixes for job file management and BOINC GAHP, from Jaime Frey

This commit is contained in:
David Anderson 2013-09-09 16:18:43 -07:00
parent ef5db41382
commit 29c41fd980
2 changed files with 3 additions and 3 deletions

View File

@ -102,9 +102,9 @@ function query_files($r) {
//
$job_file = BoincJobFile::lookup_md5($md5);
if ($job_file && $job_file->delete_time < $delete_time) {
$retval = $job_file::update("delete_time=$delete_time");
$retval = $job_file->update("delete_time=$delete_time");
if ($retval) {
xml_error(-1, "job_file::update() failed: ".mysql_error());
xml_error(-1, "job_file->update() failed: ".mysql_error());
}
}
if (file_exists($path)) {

View File

@ -714,7 +714,7 @@ char* get_cmd() {
if (c == EOF) {
return NULL;
}
if (c == '\n') {
if (c == '\n' || c == '\r') {
p[len] = 0;
return p;
}