mirror of https://github.com/BOINC/boinc.git
- user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787
svn path=/trunk/boinc/; revision=21878
This commit is contained in:
parent
eca79028cc
commit
b1851ce02c
|
@ -4949,3 +4949,8 @@ David 6 Jul 2010
|
|||
client/
|
||||
work_fetch.cpp
|
||||
|
||||
David 6 Jul 2010
|
||||
- user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787
|
||||
|
||||
html/inc/
|
||||
translation.inc
|
||||
|
|
|
@ -159,7 +159,7 @@ function getPOLineContent($line, $file){
|
|||
$start = strpos($line, '"')+1;
|
||||
$stop = strrpos($line, '"');
|
||||
$x = substr($line, $start, $stop-$start);
|
||||
$n = ereg("[^\\]\"", $x);
|
||||
$n = preg_match("/[^\\\\]\"/", $x);
|
||||
if ($n) {
|
||||
echo "ERROR - MISMATCHED QUOTES IN $file: $line\n";
|
||||
return "";
|
||||
|
|
|
@ -120,7 +120,9 @@ inline int scaled_max_jobs_per_day(DB_HOST_APP_VERSION& hav, HOST_USAGE& hu) {
|
|||
}
|
||||
if (config.debug_quota) {
|
||||
log_messages.printf(MSG_NORMAL,
|
||||
"[quota] scaled max jobs per day: %d\n", n
|
||||
"[quota] [AV#%d] scaled max jobs per day: %d\n",
|
||||
hav.app_version_id,
|
||||
n
|
||||
);
|
||||
}
|
||||
return n;
|
||||
|
@ -133,8 +135,8 @@ inline bool daily_quota_exceeded(int gavid, HOST_USAGE& hu) {
|
|||
if (havp->n_jobs_today >= q) {
|
||||
if (config.debug_quota) {
|
||||
log_messages.printf(MSG_NORMAL,
|
||||
"[quota] daily quota exceeded: %d >= %d\n",
|
||||
havp->n_jobs_today, q
|
||||
"[quota] [AV#%d] daily quota exceeded: %d >= %d\n",
|
||||
gavid, havp->n_jobs_today, q
|
||||
);
|
||||
}
|
||||
havp->daily_quota_exceeded = true;
|
||||
|
|
Loading…
Reference in New Issue