Skip to content

Commit

Permalink
Update AbeilleCmd.php
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHC16 committed Mar 17, 2020
1 parent e007097 commit 39fa94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/AbeilleCmd.php
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ function sendCmd($priority, $dest, $cmd, $len, $datas='') {
// priority = priority du message
$i = str_replace( 'Abeille', '', $dest );
$this->cmdQueue[$i][] = array( 'received'=>microtime(true), 'time'=>0, 'retry'=>$this->maxRetry, 'priority'=>$priority, 'dest'=>$dest, 'cmd'=>$cmd, 'len'=>$len, 'datas'=>$datas );
if ( $this->debug['sendCmd'] ) { $this->deamonlog("debug", "sendCmd fct - Je mets la commande dans la queue: ".$i." - Nb Cmd:".count($this->cmdQueue[$i])." -> ".json_encode($this->cmdQueue[$i]) ); }
if ( count($this->cmdQueue[$i]) > 50 ) $this->deamonlog('info', 'Il y a plus de 50 messages dans le queue de la zigate: '.$i );
if ( $this->debug['sendCmd'] ) { $this->deamonlog("debug", "sendCmd fct - Je mets la commande dans la queue: ".$dest." - Queue Numero: ".$i." - Nb Cmd:".count($this->cmdQueue[$i])." -> ".json_encode($this->cmdQueue[$i]) ); }
if ( count($this->cmdQueue[$i]) > 50 ) $this->deamonlog('info', 'Il y a plus de 50 messages dans le queue de la zigate: '. $dest . " - indice: " . $i );

}

Expand Down

0 comments on commit 39fa94c

Please sign in to comment.