summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorbastei <none>2013-09-04 07:09:42 +0200
committerbastei <none>2013-09-04 07:09:42 +0200
commit2f22e43a91b8dfae6ca8e8b8fa1cf41f08ff7ceb (patch)
tree165e46acbd7e197dae8c6b7350133b75c6fea7da /db
parentd7c7c5342df537916e21c5158cfb1d5e2b7d977b (diff)
fix limit calculation for deleteReadOlderThanThreshold
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 1dd9726e4..e66b8c166 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -259,7 +259,7 @@ class ItemMapper extends Mapper implements IMapper {
while($row = $result->fetchRow()) {
- $limit = $threshold - $row['size'];
+ $limit = $row['size'] - $threshold;
if($limit > 0) {
$params = array($status, $row['feed_id']);