From: Yugo Nagata Date: Mon, 29 Jul 2013 09:14:52 +0000 (+0900) Subject: Fix a bug that watchdug status is shown as "Unknown" when it's "Down" X-Git-Tag: V3_3 X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=f8bfa5d2a139b14904e29fb8b5e58554843dc5ae;p=pgpooladmin.git Fix a bug that watchdug status is shown as "Unknown" when it's "Down" --- diff --git a/innerWatchdog.php b/innerWatchdog.php index 8bb199d..31b9543 100644 --- a/innerWatchdog.php +++ b/innerWatchdog.php @@ -65,6 +65,9 @@ foreach ($watchdogInfo as $key => $info) { case WATCHDOG_ACTIVE: $watchdogInfo[$key]['status_str'] = $message['strWdActive']; break; + case WATCHDOG_DOWN: + $watchdogInfo[$key]['status_str'] = $message['strWdDown']; + break; default: $watchdogInfo[$key]['status_str'] = $message['strUnknown']; break;