fix(tools): resolve session-fps' default log from the repo root

This commit is contained in:
Luxuride
2026-12-04 02:41:51 +01:00
parent dc9b7b5779
commit 0c361f60bc

View File

@ -4,7 +4,8 @@
# The stats: frame lines are 5 s averages. Menus and loading are left out by
# the draws threshold; use 0 to include every sample.
set -euo pipefail
log=${1:-local/run/last.log}
root=$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)
log=${1:-$root/local/run/last.log}
min=${2:-2000}
if [ ! -f "$log" ]; then
echo "no log: $log" >&2