mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
parent
b1dabef96c
commit
717636197b
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ class IcingaRedis
|
|||
$rs = $redis->xread(1, null, [$stream], '0');
|
||||
|
||||
if (is_array($rs)) {
|
||||
$timestampKeyPos = array_search('timestamp', $rs[$stream][0][1], true);
|
||||
$timestampKeyPos = array_search('timestamp', $rs[$stream][0][1] ?? [], true);
|
||||
|
||||
if ($timestampKeyPos !== false && isset($rs[$stream][0][1][$timestampKeyPos + 1])) {
|
||||
return $rs[$stream][0][1][$timestampKeyPos + 1] / 1000;
|
||||
|
|
|
|||
Loading…
Reference in a new issue