Reorder gain report checks for better logic

This commit is contained in:
Alexandre
2026-07-08 13:30:06 +02:00
committed by GitHub
parent 1bd0c6f054
commit 6248cb3c21

View File

@@ -24,12 +24,11 @@ fi
if ! $have_rtk && ! $headroom_enabled; then exit 0; fi
echo "===== claude gains report $(date '+%Y-%m-%d %H:%M:%S') ====="
if $have_rtk; then
echo "--- rtk gain ---"
rtk gain 2>&1 || echo "[warn] rtk gain failed"
fi
if $headroom_enabled; then
echo "--- headroom savings ---"
headroom savings 2>&1 || echo "[warn] headroom savings failed"
elif $have_rtk; then
echo "--- rtk gain ---"
rtk gain 2>&1 || echo "[warn] rtk gain failed"
fi
echo "===== end gains report ====="