mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-17 20:32:25 +03:00
extractOllamaUsagePercent() only inspected the data-usage-track element's own opening tag. Ollama's settings page now writes the aria-label as "$X of $Y used" (no % sign) and moves the width:NN% style onto a nested child div, so both extraction paths silently returned null and usage/quota never populated. Add a $X-of-$Y aria-label fallback (used/total*100) and widen the width-style lookup to search the whole data-usage-track block instead of only its own opening tag, while keeping the old NN%-used / same-tag-style markup working.