Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix another defect found by sonarqube

  • Loading branch information
decke committed May 14, 2019
1 parent 75e459f commit 1fdc302c9c1c8c649b10b074058215a7645e5d80
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/PhpMonitor/Daemon.php
@@ -42,9 +42,10 @@ protected function runcheck($checkname, $url)
{
$check = $this->getCheckForUrl($url);

if(($result = $check->execute($url)) === false) {
if($this->checks[$checkname]['status'] != 'down')
if($check->execute($url) === false) {
if($this->checks[$checkname]['status'] != 'down') {
$this->checks[$checkname]['status'] = 'pending';
}
$this->checks[$checkname]['failures']++;

if($this->checks[$checkname]['status'] == 'pending' && $this->checks[$checkname]['failures'] > Config::get('maxfailures', 3)) {

0 comments on commit 1fdc302

Please sign in to comment.
You can’t perform that action at this time.