#!/usr/bin/env bash
set -euo pipefail
# YYYY-mm-DD-HH-MM
format="%F-%H-%M"
start="$(date +$format --utc)"
end="$(date +$format --utc -d '30 min ago')"

./spectrum/apps/firefly/tools/collect_can_logs --can-logs-after=$end --can-logs-before=$start "$@"
