]> andersk Git - moira.git/commitdiff
fix the test in the [ANY] printserver case to actually work
authordanw <danw>
Fri, 9 Jul 1999 03:52:36 +0000 (03:52 +0000)
committerdanw <danw>
Fri, 9 Jul 1999 03:52:36 +0000 (03:52 +0000)
server/qsetup.pc

index c78ce036496d4a21a7dfb4e5add0106b80225826..7f6a3a4f85729c81127370fa7e3d64c4afd66ec5 100644 (file)
@@ -1194,7 +1194,7 @@ int setup_aprn(struct query *q, char **argv, client *cl)
                  EXEC SQL SELECT COUNT(name) INTO :usage
                    FROM printers WHERE mach_id = :mid;
 
-                 if (best > 0 && usage < best)
+                 if (best < 0 || usage < best)
                    {
                      best = usage;
                      *(int *)argv[PRN_RM + row] = mid;
This page took 0.740589 seconds and 5 git commands to generate.