summaryrefslogtreecommitdiff
path: root/scheduler/filter.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-06-22 20:01:18 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-06-22 20:01:18 +0000
commited4869111296da3b8514751fab9dffaa3146cb87 (patch)
tree2c70846273867a43b55920695412df4069c77efa /scheduler/filter.c
parent9e22304f017970e9ba10cd593a1b07df4aafdabb (diff)
downloadcups-ed4869111296da3b8514751fab9dffaa3146cb87.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@181 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/filter.c')
-rw-r--r--scheduler/filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scheduler/filter.c b/scheduler/filter.c
index e97e2541b..d3dd6230d 100644
--- a/scheduler/filter.c
+++ b/scheduler/filter.c
@@ -346,6 +346,8 @@ find_filters(mime_t *mime, /* I - MIME database */
* any...)
*/
+ tempcost += current->cost;
+
if (tempcost < mincost)
{
cupsArrayDelete(mintemp);
@@ -356,7 +358,7 @@ find_filters(mime_t *mime, /* I - MIME database */
*/
mintemp = temp;
- mincost = tempcost + current->cost;
+ mincost = tempcost;
cupsArrayInsert(mintemp, current);
}
else