소스 검색

Se actualiza comando

Maxi Schvindt 7 년 전
부모
커밋
17be1d3639
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/StatsBundle/Command/GenerateRemoteCrontabCommand.php

+ 5 - 2
src/StatsBundle/Command/GenerateRemoteCrontabCommand.php

@@ -240,8 +240,11 @@ class GenerateRemoteCrontabCommand extends ContainerAwareCommand
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:cm:scan {$params}";
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:cm:scan {$params}";
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:scan {$params}";
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:scan {$params}";
                 
                 
-                $params .= " --save-historic={$saveHistoric}";
-                if ($amqp) $params .= " --args=--save-historic:{$saveHistoric}";
+                if ($amqp) {
+                    $params .= " --args=--save-historic:{$saveHistoric}";
+                } else {
+                    $params .= " --save-historic={$saveHistoric}";
+                }
                 
                 
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:stats {$params}";
                 $commands[] = "*/{$timeScan} * * * * {$pathConsole} {$amqpRemote} {$routing_key} cmts:interface:stats {$params}";