From cff5d779b483d7c2fd6436cc2e3a3a06f34c9c0e Mon Sep 17 00:00:00 2001 From: KevBurnsJr Date: Sun, 7 Nov 2010 14:59:32 -0800 Subject: [PATCH] Adding support for intervals of less than 1 second. --- lib/Resque/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 2f4a1e0..edfe9fc 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -175,7 +175,7 @@ class Resque_Worker else { $this->updateProcLine('Waiting for ' . implode(',', $this->queues)); } - sleep($interval); + usleep($interval*1000000); continue; }