You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$memory = $backend->getMemoryStats(); // I know this will only work with redis currently as it is not defined in backend interface etc. needs to be refactored once we add another backend
108
96
@@ -141,10 +129,7 @@ protected function doExecute(): int
141
129
$memory['used_memory_peak_human'] ?? 'Unknown',
142
130
$lock->getNumberOfAcquiredLocks()
143
131
));
144
-
$output->write("\e[s");
145
-
$output->write("\e[0G");
146
-
$output->write("\e[".($qPerPAge + 5)."A");
147
-
132
+
148
133
if (!is_null($iterations)) {
149
134
$iterationCount += 1;
150
135
if ($iterationCount >= $iterations) {
@@ -183,7 +168,8 @@ protected function doExecute(): int
183
168
$qCurrentPage = $qPageCount;
184
169
break;
185
170
case"q":
186
-
$signalTrap();
171
+
$output->writeln('');
172
+
die;
187
173
}
188
174
}
189
175
@@ -232,13 +218,4 @@ private function getPerPageFromArg()
232
218
}
233
219
return$perPage;
234
220
}
235
-
236
-
privatefunctionisPcntlFunctionAvailable()
237
-
{
238
-
if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_signal_dispatch')) {
0 commit comments