~ubuntu-branches/debian/sid/boinc/sid

« back to all changes in this revision

Viewing changes to html/ops/autolock.php

  • Committer: Package Import Robot
  • Author(s): Steffen Moeller
  • Date: 2011-08-08 01:36:51 UTC
  • mfrom: (6.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20110808013651-m1hs3cltiveuteyn
Tags: 6.13.1+dfsg-2
* Bringing notify patch to unstable.
* Adjusted build dependency to libjpeg-dev (Closes: #641093)
* Further improvements on stripchart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
$t = time() - $max_age_days*86400;
35
35
$db = BoincDb::get();
36
36
if (!$db) die("can't open DB\n");
37
 
$db->do_query("update DBNAME.thread, DBNAME.forum set DBNAME.thread.locked=1 where DBNAME.thread.forum=DBNAME.forum.id and DBNAME.forum.parent_type=0 and DBNAME.thread.timestamp<$t and DBNAME.thread.locked=0 and DBNAME.thread.sticky=0");
 
37
$db->do_query("update ".$db->db_name.".thread, ".$db->db_name.".forum set ".$db->db_name.".thread.locked=1 where ".$db->db_name.".thread.forum=".$db->db_name.".forum.id and ".$db->db_name.".forum.parent_type=0 and ".$db->db_name.".thread.timestamp<$t and ".$db->db_name.".thread.locked=0 and ".$db->db_name.".thread.sticky=0");
38
38
$n = $db->affected_rows();
39
39
$t = time_str(time());
40
40
echo "finished at $t; locked $n threads\n";