cvs: docweb /scripts notes_stats.php
[email protected] ("Nuno Lopes")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvsnlopess1111934774@cvsserver> |
nlopess Sun Mar 27 09:46:14 2005 EDT
Modified files:
/docweb/scripts notes_stats.php
Log:
fix resuming
http://cvs.php.net/diff.php/docweb/scripts/notes_stats.php?r1=1.8&r2=1.9&ty=u
Index: docweb/scripts/notes_stats.php
diff -u docweb/scripts/notes_stats.php:1.8 docweb/scripts/notes_stats.php:1.9
--- docweb/scripts/notes_stats.php:1.8 Fri Mar 25 11:48:06 2005
+++ docweb/scripts/notes_stats.php Sun Mar 27 09:46:14 2005
@@ -17,7 +17,7 @@
| Vincent Gevers <[email protected]> |
| Credits: Sean Coates <[email protected]> |
+----------------------------------------------------------------------+
-$Id: notes_stats.php,v 1.8 2005/03/25 16:48:06 nlopess Exp $
+$Id: notes_stats.php,v 1.9 2005/03/27 14:46:14 nlopess Exp $
*/
require_once '../build-ops.php';
@@ -44,16 +44,16 @@
$first = sqlite_single_query($sqlite, 'SELECT last_article FROM info');
list($last) = explode(' ', $res);
-if ($first >= $last)
+if ($first > $last)
die("Nothing I can do, no new notes available\n");
echo "Fetching items: $first-$last\n";
-$res = nntp_cmd($s, "XOVER $first-$last", 224) or die("failed to XOVER the new items\n");
+nntp_cmd($s, "XOVER $first-$last", 224) or die("failed to XOVER the new items\n");
$sql = '';
$last_update = time();
-for ($i = $first; $i < $last; $i++) {
+for ($i = $first; $i <= $last; ++$i) {
$line = fgets($s, 4096);
list($n, $subj, $author, $odate) = explode("\t", $line, 5);