summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapplication/controllers/EventController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 86c8eb7..2dae036 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -1526,7 +1526,7 @@ class EventController extends Zend_Controller_Action
$boot = false;
$shutdown = false;
$runningEvents = $this->eventMapper->findBy(array('pbs_poolID' => $event->getPbs_PoolID(), 'running' => 1));
- if(count($runningEvents) > 0) {
+ if(count($runningEvents) > 1) {
$updatePeriod = $this->config['event']['updatePeriod'];
$newStart = date('Y-m-d H:i:s', strtotime($event->getStart()) + $updatePeriod * 60);
$event->setStart($newStart);