mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-01 07:48 am

[dw-free] Better query for counting jobs in queue.

[commit: http://hg.dwscoalition.org/dw-free/rev/069e1278fc1a]

Better query for counting jobs in queue.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/LJ/Widget/ImportQueueStatus.pm
--------------------------------------------------------------------------------
diff -r eb68f7d738f0 -r 069e1278fc1a cgi-bin/LJ/Widget/ImportQueueStatus.pm
--- a/cgi-bin/LJ/Widget/ImportQueueStatus.pm	Fri May 01 07:42:43 2009 +0000
+++ b/cgi-bin/LJ/Widget/ImportQueueStatus.pm	Fri May 01 07:47:59 2009 +0000
@@ -47,7 +47,7 @@ sub render_body {
             my $ct = $dbr->selectrow_array(
                 q{SELECT COUNT(*) FROM job
                   WHERE funcid = ?
-                    AND ( run_after IS NULL OR run_after < UNIX_TIMESTAMP() )},
+                    AND run_after < UNIX_TIMESTAMP()},
                 undef, $tmpmap->{$map}
             )+0;
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org