We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e93e5 commit d792f5bCopy full SHA for d792f5b
build/monitor_memory.sh
@@ -24,6 +24,11 @@ while true; do
24
echo "========================================"
25
printf "\n--- System Memory ---\n"
26
free -h
27
+
28
+ if [[ -f "/tmp/current_query.txt" ]]; then
29
+ CURRENT_QUERY=$(cat /tmp/current_query.txt)
30
+ printf "\n--- Current Query ---\n%s\n" "$CURRENT_QUERY"
31
+ fi
32
33
printf "\n--- Top 10 Processes by memory ---\n"
34
PS_OUTPUT=$(ps_by_memory)
0 commit comments