summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-01-08 12:31:30 +0100
committerRemi Collet <remi@php.net>2025-01-08 12:31:30 +0100
commitda65cc127921df83df950a2cb79afcab3550be92 (patch)
tree134ccdc9f63bb8f661557fccb3807e918f52cb19 /mockit
parent80e1377ac3028cae65238074ed89f583c8b4bf65 (diff)
minor tweaksHEADmaster
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit4
1 files changed, 2 insertions, 2 deletions
diff --git a/mockit b/mockit
index c4d9745..6578612 100755
--- a/mockit
+++ b/mockit
@@ -39,13 +39,13 @@ if [ "$1" == "--list" ]; then
echo "-- x86_64 queue: $($REDISCLI scard mockx) tasks --"
a=$($REDISCLI smembers mockx)
[ -n "$a" ] && $REDISCLI smembers mockx | \
- sed -e 's/^.*-r/ /;s/rebuild/\t/' | sort || \
+ sed -e 's/^.*-r / /;s/rebuild/\t/;s:/.*/::' | sort | head -n 25 || \
ps -ef | grep mock/mock | grep -v grep
echo -e "\n-- aarch64 queue: $($REDISCLI scard mocka) tasks --"
a=$($REDISCLI smembers mocka)
[ -n "$a" ] && $REDISCLI smembers mocka | \
- sed -e 's/^.*-r/ /;s/rebuild/\t/'| sort || \
+ sed -e 's/^.*-r / /;s/rebuild/\t/;s:/.*/::'| sort || \
ps -ef | ssh remi@ampere 'ps -ef | grep mock/mock | grep -v grep'
exit 0