Restore status value to pre 1.36.16 value by substracting 1. So Unknown == -1, 0 = IDLE etc. Fixes #3584

pull/3609/head
Isaac Connor 2022-09-08 13:01:45 -04:00
parent 2d63dd72e4
commit d2176c83af
1 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,8 @@ class MonitorsController extends AppController {
'_serialize' => array('status','code','error'),
));
} else {
// In 1.36.16 the values got shifted up so that we could index into an array of strings.
$status -= 1;
$this->set(array(
'status' => $status,
'output' => implode(PHP_EOL, $output),