Skip to content

Commit a2e689d

Browse files
author
vogelor
committed
fixed some small typos / "copy and paste" bugs
1 parent 8793b32 commit a2e689d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

interface/web/monitor/show_sys_state.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function _getServerState($serverId, $serverName, $showAll)
9898
global $app;
9999

100100
/* The State of the server */
101-
$serverState = 'unknown';
101+
$serverState = 'ok';
102102

103103
/** The Number of several infos, warnings, errors, ... */
104104
$count = array('unknown' => 0, 'info' => 0, 'warning' => 0, 'critical' => 0, 'error' => 0);
@@ -264,7 +264,7 @@ function _processDbState($type, $serverId, &$serverState, &$messages)
264264
if ($type == 'services'){
265265
switch ($record['state']) {
266266
case 'ok':
267-
$messages['error'][] = 'All needed Services are online ' .
267+
$messages['ok'][] = 'All needed Services are online ' .
268268
"<a href='#' onclick='loadContent(\"monitor/show_data.php?type=services\");'>[more...]</a>";
269269

270270
break;
@@ -317,9 +317,9 @@ function _setState($oldState, $newState)
317317
switch ($oldState) {
318318
case 'no_state': $oldInt = 0;
319319
break;
320-
case 'unknown': $oldInt = 1;
320+
case 'ok': $oldInt = 1;
321321
break;
322-
case 'ok': $oldInt = 2;
322+
case 'unknown': $oldInt = 2;
323323
break;
324324
case 'info': $oldInt = 3;
325325
break;

server/mods-available/monitor_core_module.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,9 @@ function _setState($oldState, $newState)
846846
switch ($newState) {
847847
case 'no_state': $newInt = 0 ;
848848
break;
849-
case 'unknown': $newInt = 1 ;
849+
case 'ok': $newInt = 1 ;
850850
break;
851-
case 'ok': $newInt = 2 ;
851+
case 'unknown': $newInt = 2 ;
852852
break;
853853
case 'info': $newInt = 3 ;
854854
break;

0 commit comments

Comments
 (0)