chore: fix stale packaging and monitor references to the deleted tree

cc
This commit is contained in:
vicrodh committed 2026-07-10 01:05:47 -06:00
1 parent 15ff525d43
commit a9949b8cf2
3 files changed
+7 -26

No files matched your search

+5 -18
View File
@@ -6,12 +6,12 @@ echo "=== QBZ Resource Monitor ==="
echo "Waiting for QBZ process..."
echo ""
# Wait for process to start
while ! pgrep -f "qbz-nix" > /dev/null 2>&1; do
# Wait for process to start (Slint binary is named "qbz")
while ! pgrep -x "qbz" > /dev/null 2>&1; do
sleep 0.5
done
PID=$(pgrep -f "qbz-nix" | head -1)
PID=$(pgrep -x "qbz" | head -1)
echo "Found QBZ PID: $PID"
echo ""
echo "Press Ctrl+C to stop monitoring"
@@ -31,22 +31,9 @@ while true; do
MEM_MB=$((MEM / 1024))
THREADS=$(ps -p "$PID" -o nlwp= 2>/dev/null | tr -d ' ')
# Get WebKit process if exists
WEBKIT_PID=$(pgrep -f "WebKitWebProcess" | head -1 2>/dev/null)
if [[ -n "$WEBKIT_PID" ]]; then
WEBKIT_MEM=$(ps -p "$WEBKIT_PID" -o rss= 2>/dev/null | tr -d ' ')
WEBKIT_MB=$((WEBKIT_MEM / 1024))
WEBKIT_CPU=$(ps -p "$WEBKIT_PID" -o %cpu= 2>/dev/null | tr -d ' ')
else
WEBKIT_MB=0
WEBKIT_CPU=0
fi
TOTAL_MB=$((MEM_MB + WEBKIT_MB))
# Print stats
printf "\r[QBZ] CPU: %5s%% | RAM: %4dMB | Threads: %2s | [WebKit] CPU: %5s%% | RAM: %4dMB | TOTAL: %4dMB" \
"$CPU" "$MEM_MB" "$THREADS" "$WEBKIT_CPU" "$WEBKIT_MB" "$TOTAL_MB"
printf "\r[QBZ] CPU: %5s%% | RAM: %4dMB | Threads: %2s" \
"$CPU" "$MEM_MB" "$THREADS"
sleep 1
done