chore: auto-commit uncommitted changes
This commit is contained in:
parent
6adbe6c985
commit
d23c0c39c3
|
|
@ -442,13 +442,13 @@ async function updateWeather() {
|
|||
updateWeather();
|
||||
setInterval(updateWeather, 60000); // every minute
|
||||
|
||||
// === CLAUDE BUDGET PACE — only show when usage > 75% ===
|
||||
// === CLAUDE BUDGET PACE — always visible ===
|
||||
async function updateClaudeUsage() {
|
||||
const el = document.getElementById('claude-usage');
|
||||
try {
|
||||
const r = await fetch('/api/claude-usage');
|
||||
const d = await r.json();
|
||||
if (d.usage != null && d.usage > 75) {
|
||||
if (d.pace != null && d.timePct > 0) {
|
||||
el.textContent = `pace ${d.pace}%`;
|
||||
el.title = `Budget pace: ${d.timePct}% of week elapsed, ${d.usage}% used`;
|
||||
el.className = d.pace < 90 ? 'good' : d.pace <= 100 ? 'ok' : 'crit';
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue